Skip to content

Commit

Permalink
Makefile: Disable warning for Bison-generated source
Browse files Browse the repository at this point in the history
Bison-3.4.2 together with llvm 15.0.4 produce the warning

    parser.tab.c:1078:9: warning: variable 'yynerrs' set but not used

Disable this warning for the parser.tab.c compilation.
  • Loading branch information
donald committed Jan 1, 2024
1 parent 009304f commit 74488bc
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -361,6 +361,14 @@ ppidcache.h += ppidcache.h

########################################################################

## parser.tab.o

# Disable "variable 'yynerrs' set but not used" diagnostic which
# appears with bison-3.4.2 + llvm 15.0.4

parser.tab.o: parser.tab.c parser.tab.h
$(call quiet-command,${CC} ${CFLAGS} -Wno-unused-but-set-variable -o $@ -c $<," CC $@")

### mx_getopt.o --------------------------------------------------------

mx_getopt.o: $(mx_getopt.h)
Expand Down

0 comments on commit 74488bc

Please sign in to comment.