summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libjsonpp/Jamfile.jam2
-rw-r--r--libjsonpp/json.ll2
2 files changed, 3 insertions, 1 deletions
diff --git a/libjsonpp/Jamfile.jam b/libjsonpp/Jamfile.jam
index 2983e68..4114e6c 100644
--- a/libjsonpp/Jamfile.jam
+++ b/libjsonpp/Jamfile.jam
@@ -20,7 +20,7 @@ lib jsonpp :
:
<include>.
<library>glibmm
- <cflags>-Wno-error=sign-compare
+ <define>yyFlexLexer=jsonBaseFlexLexer
: :
<include>.
;
diff --git a/libjsonpp/json.ll b/libjsonpp/json.ll
index 94be11f..aae3ed2 100644
--- a/libjsonpp/json.ll
+++ b/libjsonpp/json.ll
@@ -5,11 +5,13 @@
%option stack
%option yylineno
%option yyclass="json::jsonFlexLexer"
+%option prefix="jsonBase"
%{
#include "jsonFlexLexer.h"
#include <boost/lexical_cast.hpp>
#include <boost/bind.hpp>
+#pragma GCC diagnostic ignored "-Wsign-compare"
%}
beginobj "{"