-
Notifications
You must be signed in to change notification settings - Fork 57
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
67 additions
and
43 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,34 @@ | ||
target_compile_options (clio PUBLIC | ||
set(COMPILER_FLAGS | ||
-Wall | ||
-Wcast-align | ||
-Wdouble-promotion | ||
-Wextra | ||
-Werror | ||
-Wformat=2 | ||
-Wimplicit-fallthrough | ||
-Wmisleading-indentation | ||
-Wno-narrowing | ||
-Wno-deprecated-declarations | ||
-Wno-dangling-else | ||
-Wno-unused-but-set-variable | ||
-Wnon-virtual-dtor | ||
-Wnull-dereference | ||
-Wold-style-cast | ||
-Woverloaded-virtual | ||
-pedantic | ||
-Wpedantic | ||
-Wunused | ||
) | ||
if (CMAKE_CXX_COMPILER_ID STREQUAL "GNU") | ||
list(APPEND COMPILER_FLAGS | ||
-Wduplicated-branches | ||
-Wduplicated-cond | ||
-Wlifetime | ||
-Wlogical-op | ||
-Wuseless-cast | ||
) | ||
endif () | ||
|
||
# See https://github.com/cpp-best-practices/cppbestpractices/blob/master/02-Use_the_Tools_Available.md#gcc--clang for the flags description | ||
|
||
target_compile_options (clio PUBLIC ${COMPILER_FLAGS}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters