--- oscar/oscar.pro 2024-04-14 07:40:39 +++ oscar/oscar.pro 2024-09-07 13:45:32 @@ -540,10 +540,6 @@ } message("CXXFLAGS pre-mods $$QMAKE_CXXFLAGS ") - -# Always treat warnings as errors, even (especially!) in release -QMAKE_CFLAGS += -Werror -QMAKE_CXXFLAGS += -Werror gcc | clang { COMPILER_VERSION = $$system($$QMAKE_CXX " -dumpversion") @@ -594,11 +590,11 @@ QMAKE_CFLAGS += -Wno-error=deprecated-copy QMAKE_CXXFLAGS += -Wno-error=deprecated-copy !win32 { # add memory checking on Linux and macOS debug builds - QMAKE_CFLAGS += -g -Werror -fsanitize=address -fno-omit-frame-pointer -fno-common -fsanitize-address-use-after-scope + QMAKE_CFLAGS += -g -fsanitize=address -fno-omit-frame-pointer -fno-common -fsanitize-address-use-after-scope lessThan(QT_MAJOR_VERSION,5)|lessThan(QT_MINOR_VERSION,9) { QMAKE_CFLAGS -= -fsanitize-address-use-after-scope } - QMAKE_CXXFLAGS += -g -Werror -fsanitize=address -fno-omit-frame-pointer -fno-common -fsanitize-address-use-after-scope + QMAKE_CXXFLAGS += -g -fsanitize=address -fno-omit-frame-pointer -fno-common -fsanitize-address-use-after-scope lessThan(QT_MAJOR_VERSION,5)|lessThan(QT_MINOR_VERSION,9) { QMAKE_CXXFLAGS -= -fsanitize-address-use-after-scope } @@ -616,11 +612,11 @@ CONFIG += console debug CONFIG -= app_bundle !win32 { # add memory checking on Linux and macOS test builds - QMAKE_CFLAGS += -Werror -fsanitize=address -fno-omit-frame-pointer -fno-common -fsanitize-address-use-after-scope + QMAKE_CFLAGS += -fsanitize=address -fno-omit-frame-pointer -fno-common -fsanitize-address-use-after-scope lessThan(QT_MAJOR_VERSION,5)|lessThan(QT_MINOR_VERSION,9) { QMAKE_CFLAGS -= -fsanitize-address-use-after-scope } - QMAKE_CXXFLAGS += -Werror -fsanitize=address -fno-omit-frame-pointer -fno-common -fsanitize-address-use-after-scope + QMAKE_CXXFLAGS += -fsanitize=address -fno-omit-frame-pointer -fno-common -fsanitize-address-use-after-scope lessThan(QT_MAJOR_VERSION,5)|lessThan(QT_MINOR_VERSION,9) { QMAKE_CXXFLAGS -= -fsanitize-address-use-after-scope }