mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-23 03:05:48 +03:00
13 lines
734 B
Diff
13 lines
734 B
Diff
Fix -Werror flags, build fails with them
|
|
|
|
--- a/CMakeScripts/DefineDependsandFlags.cmake
|
|
+++ b/CMakeScripts/DefineDependsandFlags.cmake
|
|
@@ -32,8 +32,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 "-Wno-switch") # See !849 for discussion
|
|
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 "-Wcomment")
|