Revert "fix: temporarily ignore stringop-overflow warning"

This reverts commit 90007e2d9d.
This commit is contained in:
Sefa Eyeoglu 2022-05-22 20:57:52 +02:00
parent 0922a7f410
commit 309dcc82ca
No known key found for this signature in database
GPG Key ID: C10411294912A422

View File

@ -38,10 +38,6 @@ set(CMAKE_CXX_FLAGS "-Wall -pedantic -Werror -Wno-deprecated-declarations -D_GLI
if(UNIX AND APPLE)
set(CMAKE_CXX_FLAGS "-stdlib=libc++ ${CMAKE_CXX_FLAGS}")
endif()
# FIXME: GCC 12 complains about some random stuff in bundled 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()
# Fix build with Qt 5.13
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DQT_NO_DEPRECATED_WARNINGS=Y")