From eee2a7b3147594de82de8c04fbf309dac24d19bb Mon Sep 17 00:00:00 2001 From: Phenom Date: Sat, 21 Jan 2017 16:51:37 +0100 Subject: [PATCH] Add no cpp #warning Config flag to better show other ones. Use CONFIG+=rs_nocppwarning to qmake command line. --- retroshare.pri | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/retroshare.pri b/retroshare.pri index d0c78198d..498131aea 100644 --- a/retroshare.pri +++ b/retroshare.pri @@ -55,6 +55,10 @@ no_rs_gxs:CONFIG -= rs_gxs 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 { isEmpty(PREFIX) { PREFIX = "/usr" } @@ -166,4 +170,10 @@ rs_nodeprecatedwarning { 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