From 49322a3f53fa2e4b98663963d6b4cc030f32e484 Mon Sep 17 00:00:00 2001 From: Colin Walters Date: Fri, 6 May 2016 12:25:27 -0400 Subject: [PATCH] build: Use --std=gnu99 It's actually very nice to be able to declare loop variables inside the initializer. Ideally we could turn off nested functions though. Closes: #284 Approved by: jlebon --- Makefile.am | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile.am b/Makefile.am index e49b7c59..cf67c4ba 100644 --- a/Makefile.am +++ b/Makefile.am @@ -27,7 +27,7 @@ AM_CPPFLAGS += -DDATADIR='"$(datadir)"' -DLIBEXECDIR='"$(libexecdir)"' \ -DG_LOG_DOMAIN=\"OSTree\" \ -DGLIB_VERSION_MIN_REQUIRED=GLIB_VERSION_2_40 -DGLIB_VERSION_MAX_ALLOWED=GLIB_VERSION_2_40 \ -DSOUP_VERSION_MIN_REQUIRED=SOUP_VERSION_2_40 -DSOUP_VERSION_MAX_ALLOWED=SOUP_VERSION_2_48 -AM_CFLAGS += $(WARN_CFLAGS) +AM_CFLAGS += -std=gnu99 $(WARN_CFLAGS) DISTCHECK_CONFIGURE_FLAGS += --enable-gtk-doc --disable-maintainer-mode GITIGNOREFILES = aclocal.m4 build-aux/ buildutil/*.m4 config.h.in gtk-doc.make