chiark / gitweb /
Makefile.in: turn of -Wsign-compare for bison output
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Tue, 19 Apr 2016 21:46:12 +0000 (22:46 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Tue, 19 Apr 2016 21:46:17 +0000 (22:46 +0100)
conffile.yy.c: In function `yy_get_next_buffer':
conffile.yy.c:1228:44: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare]
  if ((int) ((yy_n_chars) + number_to_move) > YY_CURRENT_BUFFER_LVALUE->yy_buf_size) {
                                            ^

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
Makefile.in

index ba5c0da..391acf9 100644 (file)
@@ -127,6 +127,8 @@ conffile.yy.h:      conffile.yy.c
 conffile.tab.c:        conffile.y
 # End of manual dependencies section
 
+conffile.yy.o: ALL_CFLAGS += -Wno-sign-compare
+
 secnet:        $(OBJECTS)
        $(MAKE) version.o # *.o $(filter-out %.o, $^)
        $(CC) $(LDFLAGS) $(ALL_CFLAGS) -o $@ $(OBJECTS) version.o $(LDLIBS)