summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorDavid Wragg <david@rabbitmq.com>2010-10-21 17:49:04 +0100
committerDavid Wragg <david@rabbitmq.com>2010-10-21 17:49:04 +0100
commitb4e92fd12d58e3baf3bc091114fcc57b88400544 (patch)
treea50d4047f6f192e4006764b7e43fe1410b59d961 /examples
parente8ddb5e6758dcb888d1f6aef754a33fd7ba7a2cb (diff)
downloadrabbitmq-c-github-ask-b4e92fd12d58e3baf3bc091114fcc57b88400544.tar.gz
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.
Diffstat (limited to 'examples')
-rw-r--r--examples/Makefile.am8
1 files changed, 8 insertions, 0 deletions
diff --git a/examples/Makefile.am b/examples/Makefile.am
index 9655021..a15d38b 100644
--- a/examples/Makefile.am
+++ b/examples/Makefile.am
@@ -2,6 +2,14 @@ noinst_PROGRAMS = amqp_sendstring amqp_exchange_declare amqp_listen amqp_produce
amqp_unbind amqp_bind amqp_listenq
AM_CFLAGS = -I$(top_srcdir)/librabbitmq
+
+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
noinst_HEADERS = example_utils.h