diff options
author | Daniel Salzman <daniel.salzman@nic.cz> | 2014-05-05 15:02:10 +0200 |
---|---|---|
committer | Daniel Salzman <daniel.salzman@nic.cz> | 2014-05-05 15:02:10 +0200 |
commit | c8d7fcc25aff615896b0e20109895257273b6f05 (patch) | |
tree | b0c46e87198394b3de8e2311a2618e9d111a6f71 /scripts | |
parent | tests-extra: don't generate CNAME during zone update via zone_generate (diff) | |
download | knot-c8d7fcc25aff615896b0e20109895257273b6f05.tar.xz knot-c8d7fcc25aff615896b0e20109895257273b6f05.zip |
zscanner: remove unused constants from scanner.t0 to cure clang 3.4 warnings
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/update-parser.sh | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/scripts/update-parser.sh b/scripts/update-parser.sh index bc965c944..4a99d9457 100755 --- a/scripts/update-parser.sh +++ b/scripts/update-parser.sh @@ -9,6 +9,10 @@ ragel -T0 -s -o $OUT $IN sed '/#line/d' $OUT > $OUT.t0 rm $OUT +# Remove unused constants because of clang 3.4 warnings +sed -e '/static\ const\ int\ zone_scanner_en_/d' -e '/zone_scanner_first_final/d' $OUT.t0 > ./tmp +mv -f ./tmp $OUT.t0 + ragel -G2 -s -o $OUT $IN sed '/#line/d' $OUT > $OUT.g2 rm $OUT |