aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSefa Eyeoglu <contact@scrumplex.net>2022-05-22 16:03:21 +0200
committerSefa Eyeoglu <contact@scrumplex.net>2022-05-22 16:13:30 +0200
commit90007e2d9d4f63cfc9dc73888af34a17657b5102 (patch)
treefeb4251941b8c393c4786fa2e53f2f493fedcc21
parent29ef1e2c4b46c762e79a2bbe9f4a5a0033bc92ca (diff)
downloadPrismLauncher-90007e2d9d4f63cfc9dc73888af34a17657b5102.tar.gz
PrismLauncher-90007e2d9d4f63cfc9dc73888af34a17657b5102.tar.bz2
PrismLauncher-90007e2d9d4f63cfc9dc73888af34a17657b5102.zip
fix: temporarily ignore stringop-overflow warning
-rw-r--r--CMakeLists.txt4
1 files changed, 4 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index e07d2aa6..e6d66b8d 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -38,6 +38,10 @@ set(CMAKE_CXX_FLAGS " -Wall -pedantic -Werror -Wno-deprecated-declarations -D_GL
if(UNIX AND APPLE)
set(CMAKE_CXX_FLAGS " -stdlib=libc++ ${CMAKE_CXX_FLAGS}")
endif()
+# FIXME: GCC 12 complains about some random stuff in QuaZip. Need to fix this later
+if (CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
+ set(CMAKE_CXX_FLAGS "-Wno-error=stringop-overflow ${CMAKE_CXX_FLAGS}")
+endif()
set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -Werror=return-type")
# Fix build with Qt 5.13