mirror of
git://git.tartarus.org/simon/puzzles.git
synced 2025-04-21 16:05:44 -07:00
Enable -Wmissing-declarations in STRICT mode on GCC
Clang's -Wmissing-declarations means something quite different, so we only enable it on GCC. This is slightly silly since Clang's -Wmissing-declarations is enabled by default, but it makes it clear that we know they're different.
This commit is contained in:
@ -57,6 +57,11 @@ if(STRICT AND (CMAKE_C_COMPILER_ID MATCHES "GNU" OR
|
|||||||
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -Wwrite-strings -std=c99 -pedantic -Werror")
|
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -Wwrite-strings -std=c99 -pedantic -Werror")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
if(STRICT AND (CMAKE_C_COMPILER_ID MATCHES "GNU"))
|
||||||
|
# -Wmissing-declarations means completely different things in GCC and Clang.
|
||||||
|
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wmissing-declarations")
|
||||||
|
endif()
|
||||||
|
|
||||||
add_compile_definitions(HELP_DIR="${CMAKE_INSTALL_PREFIX}/share/sgt-puzzles/help")
|
add_compile_definitions(HELP_DIR="${CMAKE_INSTALL_PREFIX}/share/sgt-puzzles/help")
|
||||||
|
|
||||||
function(get_platform_puzzle_extra_source_files OUTVAR NAME)
|
function(get_platform_puzzle_extra_source_files OUTVAR NAME)
|
||||||
|
Reference in New Issue
Block a user