mirror of
https://github.com/topjohnwu/selinux.git
synced 2024-12-04 17:46:23 +00:00
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:
parent
2ceadad8a3
commit
7a4db1566a
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user