Skip to content

Commit

Permalink
Add flag Wheader-hygiene to warn about usage of namespace directive i…
Browse files Browse the repository at this point in the history
…n global context in header
  • Loading branch information
Marko Petric authored and gaede committed May 29, 2017
1 parent f51a6be commit 9a1a586
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmake/ilcsoft_default_cxx_flags.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

INCLUDE(CheckCXXCompilerFlag)

SET(COMPILER_FLAGS -Wall -Wextra -Wshadow -Weffc++ -pedantic -Wno-long-long -Wuninitialized -Wno-non-virtual-dtor)
SET(COMPILER_FLAGS -Wall -Wextra -Wshadow -Weffc++ -pedantic -Wno-long-long -Wuninitialized -Wno-non-virtual-dtor -Wheader-hygiene)

IF( "${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU" )
LIST( APPEND COMPILER_FLAGS -Wl,-no-undefined )
Expand Down

0 comments on commit 9a1a586

Please sign in to comment.