You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@qpid.apache.org by gm...@apache.org on 2017/03/13 18:23:51 UTC

qpid-dispatch git commit: DISPATCH-612 - Add support for GCC equivalent compiler options

Repository: qpid-dispatch
Updated Branches:
  refs/heads/master 9f715fa41 -> 94ac71cd4


DISPATCH-612 - Add support for GCC equivalent compiler options


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

Branch: refs/heads/master
Commit: 94ac71cd42aaa2bafe50e9b5effdad8cdac9eaca
Parents: 9f715fa
Author: Ganesh Murthy <gm...@redhat.com>
Authored: Mon Mar 13 14:23:36 2017 -0400
Committer: Ganesh Murthy <gm...@redhat.com>
Committed: Mon Mar 13 14:23:36 2017 -0400

----------------------------------------------------------------------
 CMakeLists.txt | 11 ++++++++---
 1 file changed, 8 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/qpid-dispatch/blob/94ac71cd/CMakeLists.txt
----------------------------------------------------------------------
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 8f8624d..409da72 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -125,11 +125,16 @@ include_directories(
     )
 
 add_compile_options(-pthread)
-add_compile_options(-Wall)
+
 if (NOT CMAKE_SYSTEM_NAME STREQUAL SunOS)
-add_compile_options(-Werror)
+ add_compile_options(-Werror)
+ add_compile_options(-Wall)
+ add_compile_options(-std=gnu99)
+else (NOT CMAKE_SYSTEM_NAME STREQUAL SunOS)
+ add_compile_options(-xc99)
+ add_compile_options(-errwarn=%all)
 endif (NOT CMAKE_SYSTEM_NAME STREQUAL SunOS)
-add_compile_options(-std=gnu99)
+
 set(CATCH_UNDEFINED "-Wl,-z,defs")
 
 ##


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