Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Make it compile on older compiler (used by Cruise control)
  • Loading branch information
Martin York authored and Martin York committed May 8, 2012
1 parent 14a88ae commit 84e568d
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
1 change: 1 addition & 0 deletions Json/ParserInterface.h
Expand Up @@ -6,6 +6,7 @@
#include "JsonException.h"

#include <string>
#include <iostream>


namespace ThorsAnvil
Expand Down
11 changes: 11 additions & 0 deletions Json/ParserShiftReduce.h
Expand Up @@ -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.