Skip to content
Browse files

Make it compile on older compiler (used by Cruise control)

  • Loading branch information...
1 parent 14a88ae commit 84e568d50dbcadd543be3ed5b9c965a8831666a2 @martin-seomoz martin-seomoz committed
Showing with 12 additions and 0 deletions.
  1. +1 −0 Json/ParserInterface.h
  2. +11 −0 Json/ParserShiftReduce.h
View
1 Json/ParserInterface.h
@@ -6,6 +6,7 @@
#include "JsonException.h"
#include <string>
+#include <iostream>
namespace ThorsAnvil
View
11 Json/ParserShiftReduce.h
@@ -13,10 +13,21 @@ using ThorsAnvil::Json::JsonMapValue;
using ThorsAnvil::Json::LexerJson;
+#if (__GNUG__ > 4) || ((__GNUG__ == 4) && (__GNUC_MINOR__ >= 6))
#pragma GCC diagnostic push
+#endif
+
#pragma GCC diagnostic ignored "-Wparentheses"
+
+
#include "ParserShiftReduce.tab.hpp"
+
+
+#if (__GNUG__ > 4) || ((__GNUG__ == 4) && (__GNUC_MINOR__ >= 6))
#pragma GCC diagnostic pop
+#else
+#pragma GCC diagnostic error "-Wformat"
+#endif
#endif

0 comments on commit 84e568d

Please sign in to comment.
Something went wrong with that request. Please try again.