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 @@ -1043,7 +1043,13 @@ if(EXISTS ${CMAKE_SOURCE_DIR}/.devel OR EXISTS ${CMAKE_BINARY_DIR}/.devel)
1043
1043
check_and_add_compiler_option (-Wmissing-prototypes )
1044
1044
check_and_add_compiler_option (-Wmissing-variable-declarations )
1045
1045
check_and_add_compiler_option (-Wold-style-definition )
1046
- check_and_add_compiler_option (-Wpedantic )
1046
+ if (NOT CMAKE_C_COMPILER_ID MATCHES "Sun" )
1047
+ # In Sun C versions that implement GCC compatibility "-Wpedantic"
1048
+ # means the same as "-pedantic". The latter is mutually exclusive
1049
+ # with several other options. One of those is "-xc99", which has
1050
+ # already been set for Sun C above.
1051
+ check_and_add_compiler_option (-Wpedantic )
1052
+ endif ()
1047
1053
check_and_add_compiler_option (-Wpointer-arith )
1048
1054
check_and_add_compiler_option (-Wpointer-sign )
1049
1055
check_and_add_compiler_option (-Wshadow )
You can’t perform that action at this time.
0 commit comments