diff options
Diffstat (limited to 'examples/protobuf/addressbook_cpp/main.cpp')
-rw-r--r-- | examples/protobuf/addressbook_cpp/main.cpp | 10 |
1 files changed, 9 insertions, 1 deletions
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; |