aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortimoreo22 <timo.oreo34@gmail.com>2022-05-22 18:43:31 +0200
committerGitHub <noreply@github.com>2022-05-22 18:43:31 +0200
commitefcba698ac3846019db1947f986c64aa477170af (patch)
treeb4c371cf632a089fb673d7b5afeb26dbb54dbd93
parentb19129173707e1ff4a9e28b4020519ad5ef188fb (diff)
parent90007e2d9d4f63cfc9dc73888af34a17657b5102 (diff)
downloadPrismLauncher-efcba698ac3846019db1947f986c64aa477170af.tar.gz
PrismLauncher-efcba698ac3846019db1947f986c64aa477170af.tar.bz2
PrismLauncher-efcba698ac3846019db1947f986c64aa477170af.zip
Merge pull request #616 from Scrumplex/fix-windows-crap
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