File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -1031,7 +1031,13 @@ if(EXISTS ${CMAKE_SOURCE_DIR}/.devel OR EXISTS ${CMAKE_BINARY_DIR}/.devel)
1031
1031
check_and_add_compiler_option (-Wmissing-prototypes )
1032
1032
check_and_add_compiler_option (-Wmissing-variable-declarations )
1033
1033
check_and_add_compiler_option (-Wold-style-definition )
1034
- check_and_add_compiler_option (-Wpedantic )
1034
+ if (NOT CMAKE_C_COMPILER_ID MATCHES "Sun" )
1035
+ # In Sun C versions that implement GCC compatibility "-Wpedantic"
1036
+ # means the same as "-pedantic". The latter is mutually exclusive
1037
+ # with several other options. One of those is "-xc99", which has
1038
+ # already been set for Sun C above.
1039
+ check_and_add_compiler_option (-Wpedantic )
1040
+ endif ()
1035
1041
check_and_add_compiler_option (-Wpointer-arith )
1036
1042
check_and_add_compiler_option (-Wpointer-sign )
1037
1043
check_and_add_compiler_option (-Wshadow )
You can’t perform that action at this time.
0 commit comments