Skip to content
2 changes: 2 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,6 @@ internal-tests :
test :
cd testing && cabal v1-install && bnfc-system-tests && cd ..

tag :
cd ./source && hasktags --etags .
#EOF
2 changes: 1 addition & 1 deletion source/src/BNFC/Backend/C.hs
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ makeC opts cf = do
makefile :: String -> String -> String -> Doc
makefile name prefix basename = vcat
[ "CC = gcc -g"
, "CCFLAGS = --ansi -W -Wall -Wsign-conversion -Wno-unused-parameter -Wno-unused-function -Wno-unneeded-internal-declaration ${CC_OPTS}"
, "CCFLAGS = --ansi -W -Wall -Wsign-conversion -Wno-unused-parameter -Wno-unused-function ${CC_OPTS}"
-- The @#define _POSIX_C_SOURCE 200809L@ is now placed locally in
-- the generated lexer.
-- , "CCFLAGS = --ansi -W -Wall -Wno-unused-parameter -Wno-unused-function -Wno-unneeded-internal-declaration -D_POSIX_C_SOURCE=200809L ${CC_OPTS}"
Expand Down
Loading