Skip to content

Commit

Permalink
[NOT UPSTREAMABLE] checkpolicy: disable -Werror due to issues in flex…
Browse files Browse the repository at this point in the history
…-generated code

This is a bug in flex 2.6.3:
westes/flex#155

lex.yy.c:397:0: error: "yywrap" redefined [-Werror]
lex.yy.c:73:0: note: this is the location of the previous definition
  • Loading branch information
fishilico committed Feb 18, 2017
1 parent a7b9b44 commit af2e9a3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions checkpolicy/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ checkmodule: $(CHECKMODOBJS) $(LIBSEPOLA)
y.tab.c: policy_parse.y
$(YACC) -d policy_parse.y

# Disable warnings is code generated by flex 2.6.1
lex.yy.o: CFLAGS += -Wno-error=sign-compare
# Disable warnings in code generated by flex 2.6.1 and 2.6.3
lex.yy.o: CFLAGS += -Wno-error

lex.yy.c: policy_scan.l y.tab.c
$(LEX) policy_scan.l
Expand Down

0 comments on commit af2e9a3

Please sign in to comment.