mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-06-20 20:34:25 -04:00
Add no cpp #warning Config flag to better show other ones.
Use CONFIG+=rs_nocppwarning to qmake command line.
This commit is contained in:
parent
e3240de8e0
commit
eee2a7b314
1 changed files with 10 additions and 0 deletions
|
@ -55,6 +55,10 @@ no_rs_gxs:CONFIG -= rs_gxs
|
||||||
CONFIG *= no_rs_nodeprecatedwarning
|
CONFIG *= no_rs_nodeprecatedwarning
|
||||||
rs_nodeprecatedwarning:CONFIG -= no_rs_nodeprecatedwarning
|
rs_nodeprecatedwarning:CONFIG -= no_rs_nodeprecatedwarning
|
||||||
|
|
||||||
|
# To disable Cpp #Warning append the following
|
||||||
|
# assignation to qmake command line "CONFIG+=rs_nocppwarning"
|
||||||
|
CONFIG *= no_rs_nocppwarning
|
||||||
|
rs_nocppwarning:CONFIG -= no_rs_nocppwarning
|
||||||
|
|
||||||
unix {
|
unix {
|
||||||
isEmpty(PREFIX) { PREFIX = "/usr" }
|
isEmpty(PREFIX) { PREFIX = "/usr" }
|
||||||
|
@ -166,4 +170,10 @@ rs_nodeprecatedwarning {
|
||||||
warning("QMAKE: You have disable deprecated warnings.")
|
warning("QMAKE: You have disable deprecated warnings.")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
rs_nocppwarning {
|
||||||
|
QMAKE_CXXFLAGS += -Wno-cpp
|
||||||
|
DEFINES *= RS_NO_WARN_CPP
|
||||||
|
warning("QMAKE: You have disable cpp warnings.")
|
||||||
|
}
|
||||||
|
|
||||||
rs_gxs_mail:DEFINES *= RS_GXS_MAIL
|
rs_gxs_mail:DEFINES *= RS_GXS_MAIL
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue