diff options
Diffstat (limited to 'examples')
-rw-r--r-- | examples/protobuf/addressbook_cpp/addressbook_cpp.qbs | 1 | ||||
-rw-r--r-- | examples/protobuf/addressbook_cpp/main.cpp | 10 |
2 files changed, 9 insertions, 2 deletions
diff --git a/examples/protobuf/addressbook_cpp/addressbook_cpp.qbs b/examples/protobuf/addressbook_cpp/addressbook_cpp.qbs index 5d03d08e2..f01ca47f2 100644 --- a/examples/protobuf/addressbook_cpp/addressbook_cpp.qbs +++ b/examples/protobuf/addressbook_cpp/addressbook_cpp.qbs @@ -7,7 +7,6 @@ CppApplication { Depends { name: "cpp" } cpp.cxxLanguageVersion: "c++11" cpp.minimumMacosVersion: "10.8" - cpp.warningLevel: "none" Depends { name: "protobuf.cpp"; required: false } diff --git a/examples/protobuf/addressbook_cpp/main.cpp b/examples/protobuf/addressbook_cpp/main.cpp index 8d2ca9763..31baba3d1 100644 --- a/examples/protobuf/addressbook_cpp/main.cpp +++ b/examples/protobuf/addressbook_cpp/main.cpp @@ -30,10 +30,18 @@ #include <ctime> #include <fstream> -#include <google/protobuf/util/time_util.h> #include <iostream> #include <string> +#ifdef __GNUC__ +# pragma GCC diagnostic push +# pragma GCC diagnostic ignored "-Wunused-parameter" +# include <google/protobuf/util/time_util.h> +# pragma GCC diagnostic pop +#else +# include <google/protobuf/util/time_util.h> +#endif // __GNUC__ + #include "addressbook.pb.h" using google::protobuf::util::TimeUtil; |