Skip to content

Commit

Permalink
Quieten gcc for tatuological comparisons.
Browse files Browse the repository at this point in the history
  • Loading branch information
katef committed Jul 21, 2018
1 parent 60e1502 commit 60c4fd7
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/libre/dialect/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,14 @@ DFLAGS.${src} += -I src # XXX: for internal.h
ACT.${parser} = src/libre/parser.act
.endfor

# Our inlined actions use m < n for counts, but are also called with
# m for both values, and gcc complains about m < m never being true.
.if ${CC:T:Mgcc}
.for src in ${SRC:Msrc/libre/dialect/${dialect}/parser.c}
CFLAGS.${src} += -Wno-tautological-compare
.endfor
.endif

# SID persistent variables are unused in some productions
.if ${CC:T:Mgcc} || ${CC:T:Mclang}
.for src in ${SRC:Msrc/libre/dialect/${dialect}/parser.c}
Expand Down

0 comments on commit 60c4fd7

Please sign in to comment.