mirror of
https://gitlab.com/pholy/OSCAR-code.git
synced 2025-04-08 04:00:44 +00:00
allow depreciated-copy for memdebug mode. bug in QT qlist .
This commit is contained in:
parent
8be2706623
commit
b86b07df2c
@ -571,8 +571,8 @@ clang {
|
|||||||
|
|
||||||
# Make deprecation warnings just warnings
|
# Make deprecation warnings just warnings
|
||||||
# these two removed. all deprecated-declarations errors have been removed
|
# these two removed. all deprecated-declarations errors have been removed
|
||||||
QMAKE_CFLAGS += -Wno-error=deprecated-declarations
|
#QMAKE_CFLAGS += -Wno-error=deprecated-declarations
|
||||||
QMAKE_CXXFLAGS += -Wno-error=deprecated-declarations
|
#QMAKE_CXXFLAGS += -Wno-error=deprecated-declarations
|
||||||
|
|
||||||
message("CXXFLAGS post-mods $$QMAKE_CXXFLAGS ")
|
message("CXXFLAGS post-mods $$QMAKE_CXXFLAGS ")
|
||||||
message("CXXFLAGS_WARN_ON $$QMAKE_CXXFLAGS_WARN_ON")
|
message("CXXFLAGS_WARN_ON $$QMAKE_CXXFLAGS_WARN_ON")
|
||||||
@ -585,6 +585,10 @@ lessThan(QT_MAJOR_VERSION,5)|lessThan(QT_MINOR_VERSION,9) {
|
|||||||
# Create a debug GUI build by adding "CONFIG+=memdebug" to your qmake command
|
# Create a debug GUI build by adding "CONFIG+=memdebug" to your qmake command
|
||||||
memdebug {
|
memdebug {
|
||||||
CONFIG += debug
|
CONFIG += debug
|
||||||
|
## there is an error in qt. qlist.h uses an implicitly defined operator=
|
||||||
|
## allow this for debug
|
||||||
|
QMAKE_CFLAGS += -Wno-error=deprecated-copy
|
||||||
|
QMAKE_CXXFLAGS += -Wno-error=deprecated-copy
|
||||||
!win32 { # add memory checking on Linux and macOS debug builds
|
!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 -Werror -fsanitize=address -fno-omit-frame-pointer -fno-common -fsanitize-address-use-after-scope
|
||||||
lessThan(QT_MAJOR_VERSION,5)|lessThan(QT_MINOR_VERSION,9) {
|
lessThan(QT_MAJOR_VERSION,5)|lessThan(QT_MINOR_VERSION,9) {
|
||||||
|
Loading…
Reference in New Issue
Block a user