diff options
Diffstat (limited to 'community/inkscape/fix-Werror.patch')
-rw-r--r-- | community/inkscape/fix-Werror.patch | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/community/inkscape/fix-Werror.patch b/community/inkscape/fix-Werror.patch new file mode 100644 index 0000000000..dd90ec90e5 --- /dev/null +++ b/community/inkscape/fix-Werror.patch @@ -0,0 +1,13 @@ +Fix -Werror flags, build fails with them + +--- a/CMakeScripts/DefineDependsandFlags.cmake ++++ b/CMakeScripts/DefineDependsandFlags.cmake +@@ -26,8 +26,6 @@ + + # Errors for common mistakes + list(APPEND INKSCAPE_CXX_FLAGS "-fstack-protector-strong") +-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") # -Og for _FORTIFY_SOURCE. One could add -Weffc++ here to see approx. 6000 warnings + list(APPEND INKSCAPE_CXX_FLAGS_DEBUG "-D_GLIBCXX_ASSERTIONS") + if (CMAKE_COMPILER_IS_GNUCC) |