diff options
author | Jozsef Kadlecsik <kadlec@blackhole.kfki.hu> | 2010-12-18 22:54:49 +0100 |
---|---|---|
committer | Jozsef Kadlecsik <kadlec@blackhole.kfki.hu> | 2010-12-18 22:54:49 +0100 |
commit | c35dbd0a66f5abede84a4ea966bd765ed6942edb (patch) | |
tree | 264ae6bf3da50f35b381a07f8cfc6fa2838de704 /Make_global.am | |
parent | 82b83ffa0b69cfd8f81d4b122b9d5c020d68ea46 (diff) |
Use configure to detect compiler warning flags
By checking the supported compiler warning flags, different gcc releases
are supported without the crude --disable-extra-flags option.
Diffstat (limited to 'Make_global.am')
-rw-r--r-- | Make_global.am | 36 |
1 files changed, 1 insertions, 35 deletions
diff --git a/Make_global.am b/Make_global.am index fe4d9a0..05a053c 100644 --- a/Make_global.am +++ b/Make_global.am @@ -7,41 +7,7 @@ LIBVERSION = 1:0:0 AM_CPPFLAGS = $(kinclude_CFLAGS) $(all_includes) -I$(top_srcdir)/include \ -I/usr/local/include -# -Wconversion -> we need it -# -Wunreachable-code -> fails with ntoh* -# -Wpointer-arith -> limbnl uses it - -if DISABLE_EXTRA_FLAGS -AM_CFLAGS = -else -AM_CFLAGS = -std=gnu99 \ - -Wall \ - -Waggregate-return \ - -Wbad-function-cast \ - -Wcast-align \ - -Wcast-qual \ - -Wextra \ - -Wfloat-equal \ - -Wformat=2 \ - -Winit-self \ - -Winline \ - -Wmissing-declarations \ - -Wmissing-format-attribute \ - -Wmissing-prototypes \ - -Wnested-externs \ - -Wno-missing-field-initializers \ - -Wold-style-definition \ - -Woverlength-strings \ - -Wpacked \ - -Wredundant-decls \ - -Wshadow \ - -Wsign-compare \ - -Wstrict-prototypes \ - -Wswitch-default \ - -Wundef \ - -Wwrite-strings \ - -Werror -endif +AM_CFLAGS = -std=gnu99 -Wall if ENABLE_DEBUG AM_CFLAGS += -g -ggdb -gdwarf-2 -g3 -DIPSET_DEBUG |