NO-JIRA: enable warnings-as-errors for clang C compiler
diff --git a/proton-c/CMakeLists.txt b/proton-c/CMakeLists.txt
index 7753f1f..ddab147 100644
--- a/proton-c/CMakeLists.txt
+++ b/proton-c/CMakeLists.txt
@@ -262,6 +262,12 @@
endif (ENABLE_HIDE_UNEXPORTED_SYMBOLS)
endif (CMAKE_COMPILER_IS_GNUCC)
+if (CMAKE_C_COMPILER_ID MATCHES "Clang")
+ if (ENABLE_WARNING_ERROR)
+ set (COMPILE_WARNING_FLAGS "-Werror -Wall -pedantic")
+ endif (ENABLE_WARNING_ERROR)
+endif()
+
if (CMAKE_CXX_COMPILER_ID MATCHES "Clang")
if (ENABLE_WARNING_ERROR)
set (WERROR "-Werror")
diff --git a/proton-c/src/sasl/sasl.c b/proton-c/src/sasl/sasl.c
index c917d58..69fb6b2 100644
--- a/proton-c/src/sasl/sasl.c
+++ b/proton-c/src/sasl/sasl.c
@@ -32,12 +32,6 @@
#include <assert.h>
-static inline pn_transport_t *get_transport_internal(pn_sasl_t *sasl)
-{
- // The external pn_sasl_t is really a pointer to the internal pni_transport_t
- return ((pn_transport_t *)sasl);
-}
-
static inline pni_sasl_t *get_sasl_internal(pn_sasl_t *sasl)
{
// The external pn_sasl_t is really a pointer to the internal pni_transport_t