From b4e92fd12d58e3baf3bc091114fcc57b88400544 Mon Sep 17 00:00:00 2001 From: David Wragg Date: Thu, 21 Oct 2010 17:49:04 +0100 Subject: Pass "-ansi -pedantic" to gcc, so it tells us when we stray from C90 And fix up the resulting warnings We don't use "-ansi -pedantic" in the tools dir, because that code relies on libpopt, and so is unlikely ever to work with the Microsoft compiler anyway. --- tests/Makefile.am | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'tests') diff --git a/tests/Makefile.am b/tests/Makefile.am index 7c8a4fe..80afcfa 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am @@ -1,4 +1,12 @@ noinst_PROGRAMS = test_tables AM_CFLAGS = -I$(top_srcdir)/librabbitmq -I$(top_srcdir)/librabbitmq/$(PLATFORM_DIR) + +if GCC +# Because we want to build under Microsoft's C compiler (for which +# there is apparently no demand for C99 support), it's a good idea +# to have gcc tell us when we stray from the old standard. +AM_CFLAGS += -ansi -pedantic +endif + AM_LDFLAGS = $(top_builddir)/librabbitmq/librabbitmq.la -- cgit v1.2.1