You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@qpid.apache.org by ac...@apache.org on 2016/11/25 21:01:22 UTC

[26/48] qpid-proton git commit: NO-JIRA: enable warnings-as-errors for clang C compiler

NO-JIRA: enable warnings-as-errors for clang C compiler


Project: http://git-wip-us.apache.org/repos/asf/qpid-proton/repo
Commit: http://git-wip-us.apache.org/repos/asf/qpid-proton/commit/b1a29250
Tree: http://git-wip-us.apache.org/repos/asf/qpid-proton/tree/b1a29250
Diff: http://git-wip-us.apache.org/repos/asf/qpid-proton/diff/b1a29250

Branch: refs/heads/go1
Commit: b1a292503dc0dacf79fa55c53703f568f4c5b495
Parents: f550d28
Author: Alan Conway <ac...@redhat.com>
Authored: Wed Nov 16 16:33:14 2016 -0500
Committer: Alan Conway <ac...@redhat.com>
Committed: Wed Nov 16 19:35:26 2016 -0500

----------------------------------------------------------------------
 proton-c/CMakeLists.txt  | 6 ++++++
 proton-c/src/sasl/sasl.c | 6 ------
 2 files changed, 6 insertions(+), 6 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/qpid-proton/blob/b1a29250/proton-c/CMakeLists.txt
----------------------------------------------------------------------
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 @@ elseif (CMAKE_CXX_COMPILER_ID STREQUAL "SunPro")
   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")

http://git-wip-us.apache.org/repos/asf/qpid-proton/blob/b1a29250/proton-c/src/sasl/sasl.c
----------------------------------------------------------------------
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


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@qpid.apache.org
For additional commands, e-mail: commits-help@qpid.apache.org