From 41f3e135db165fff931a07ef79e7731037d22941 Mon Sep 17 00:00:00 2001 From: "/C=EU/ST=EU/CN=Pablo Neira Ayuso/emailAddress=pablo@netfilter.org" Date: Tue, 15 Jan 2008 12:46:12 +0000 Subject: Max Kellermann : enable gcc warnings, including -Werror --- ChangeLog | 1 + Make_global.am | 5 +++++ src/Makefile.am | 3 +++ 3 files changed, 9 insertions(+) diff --git a/ChangeLog b/ChangeLog index 27f48b2..aea2a00 100644 --- a/ChangeLog +++ b/ChangeLog @@ -45,6 +45,7 @@ o improve alarm framework based on suggestions from Max Kellerman Max Kellermann : = conntrackd = o resolve global variable "alarm" conflict with alarm() function in unistd.h. +o enable gcc warnings, including -Werror version 0.9.5 (2007/07/29) ------------------------------ diff --git a/Make_global.am b/Make_global.am index 685add7..252abf9 100644 --- a/Make_global.am +++ b/Make_global.am @@ -1 +1,6 @@ INCLUDES=$(all_includes) -I$(top_srcdir)/include + +AM_CFLAGS = -W -Wall \ + -Werror \ + -Wmissing-prototypes -Wwrite-strings -Wcast-qual -Wfloat-equal -Wshadow -Wpointer-arith -Wbad-function-cast -Wsign-compare -Waggregate-return -Wmissing-declarations -Wredundant-decls -Wnested-externs -Winline -Wstrict-prototypes -Wundef \ + -Wno-unused-parameter diff --git a/src/Makefile.am b/src/Makefile.am index c2e684a..fafb5ff 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -22,6 +22,9 @@ conntrackd_SOURCES = alarm.c main.c run.c hash.c queue.c buffer.c \ build.c parse.c \ read_config_yy.y read_config_lex.l +# yacc and lex generate dirty code +read_config_yy.o read_config_lex.o: AM_CFLAGS += -Wno-missing-prototypes -Wno-missing-declarations -Wno-implicit-function-declaration -Wno-nested-externs -Wno-undef -Wno-redundant-decls + conntrackd_LDFLAGS = $(all_libraries) @LIBNETFILTER_CONNTRACK_LIBS@ EXTRA_DIST = read_config_yy.h -- cgit v1.2.3