libsepol: cil_lexer: make warnings non-fatal for building

The flex skeleton often triggers compiler warnings; make these
non-fatal for building.  We already do likewise for checkpolicy.

Signed-off-by: Stephen Smalley <sds@tycho.nsa.gov>
This commit is contained in:
Stephen Smalley 2016-11-15 17:19:18 -05:00
parent 2ceadad8a3
commit 7a4db1566a

View File

@ -60,6 +60,12 @@ else
endif
ifneq ($(DISABLE_CIL),y)
$(CILDIR)/src/cil_lexer.o: $(CILDIR)/src/cil_lexer.c
$(CC) $(filter-out -Werror, $(CFLAGS)) -fPIC -c -o $@ $<
$(CILDIR)/src/cil_lexer.lo: $(CILDIR)/src/cil_lexer.c
$(CC) $(filter-out -Werror, $(CFLAGS)) -fPIC -DSHARED -c -o $@ $<
$(CILDIR)/src/cil_lexer.c: $(CILDIR)/src/cil_lexer.l
$(LEX) -t $< > $@
endif