diff options
| author | Thomas Holder <thomas@thomas-holder.de> | 2018-11-20 09:27:20 +0000 |
|---|---|---|
| committer | Thomas Holder <thomas@thomas-holder.de> | 2018-11-21 09:01:50 +0000 |
| commit | 70a005ee969dbdd0a859a295abd94f979ff9402f (patch) | |
| tree | 195c9d53342d937f22ddbbf3c444a72ba961fc79 /CMakeScripts | |
| parent | Small update to src/io/README. (diff) | |
| download | inkscape-70a005ee969dbdd0a859a295abd94f979ff9402f.tar.gz inkscape-70a005ee969dbdd0a859a295abd94f979ff9402f.zip | |
-Werror=format -Werror=format-security
Diffstat (limited to 'CMakeScripts')
| -rw-r--r-- | CMakeScripts/DefineDependsandFlags.cmake | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/CMakeScripts/DefineDependsandFlags.cmake b/CMakeScripts/DefineDependsandFlags.cmake index a8230fea7..c4b90b493 100644 --- a/CMakeScripts/DefineDependsandFlags.cmake +++ b/CMakeScripts/DefineDependsandFlags.cmake @@ -18,6 +18,9 @@ list(APPEND INKSCAPE_INCS ${PROJECT_SOURCE_DIR} # as replaced with CMAKE_CXX_STANDARD in main CMakeLists.txt list(APPEND INKSCAPE_CXX_FLAGS "-std=c++11") +# Errors for common mistakes +list(APPEND INKSCAPE_CXX_FLAGS "-Werror=format") # e.g.: printf("%s", std::string("foo")) +list(APPEND INKSCAPE_CXX_FLAGS "-Werror=format-security") # e.g.: printf(variable); # Define the flags for profiling if desired: if(WITH_PROFILING) |
