summaryrefslogtreecommitdiffstats
path: root/CMakeScripts/DefineDependsandFlags.cmake
diff options
context:
space:
mode:
authorMarc Jeanmougin <marc@jeanmougin.fr>2019-10-11 16:28:55 +0000
committerMarc Jeanmougin <marc@jeanmougin.fr>2019-10-11 16:29:04 +0000
commit157ea34ce87b49756f0fe2f6ba81c5a09c42c0f9 (patch)
tree89672d1bbe3726382cce72692c7ca32e679cd6b6 /CMakeScripts/DefineDependsandFlags.cmake
parentFix slowdown from switching Text tool a lot (diff)
downloadinkscape-157ea34ce87b49756f0fe2f6ba81c5a09c42c0f9.tar.gz
inkscape-157ea34ce87b49756f0fe2f6ba81c5a09c42c0f9.zip
Initialize some uninitialized variables
Diffstat (limited to 'CMakeScripts/DefineDependsandFlags.cmake')
-rw-r--r--CMakeScripts/DefineDependsandFlags.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/CMakeScripts/DefineDependsandFlags.cmake b/CMakeScripts/DefineDependsandFlags.cmake
index 322864869..a11050c94 100644
--- a/CMakeScripts/DefineDependsandFlags.cmake
+++ b/CMakeScripts/DefineDependsandFlags.cmake
@@ -29,7 +29,7 @@ endif()
# 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);
-list(APPEND INKSCAPE_CXX_FLAGS_DEBUG "-Og") # for _FORTIFY_SOURCE
+list(APPEND INKSCAPE_CXX_FLAGS_DEBUG "-Og -Weffc++") # for _FORTIFY_SOURCE
list(APPEND INKSCAPE_CXX_FLAGS_DEBUG "-D_GLIBCXX_ASSERTIONS")
if (CMAKE_COMPILER_IS_GNUCC)
list(APPEND INKSCAPE_CXX_FLAGS_DEBUG "-fexceptions -fstack-protector-strong -grecord-gcc-switches -fasynchronous-unwind-tables")