From 32062c78e1eee93c101371264297e9553b9d46cd Mon Sep 17 00:00:00 2001 From: Stéphane Raimbault Date: Thu, 18 Apr 2013 09:25:19 +0200 Subject: [PATCH] Remove unsupported -Wtype-limits for GCC < 4.3.5 (closes #109) --- configure.ac | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index 7b804bd..bf11bd9 100644 --- a/configure.ac +++ b/configure.ac @@ -111,12 +111,13 @@ AC_CHECK_DECLS([TIOCSRS485], [], [], [[#include ]]) # Check for RTS flags AC_CHECK_DECLS([TIOCM_RTS], [], [], [[#include ]]) +# Wtype-limits is not supported by gcc 4.2 (default on recent Mac OS X) my_CFLAGS="-Wall \ -Wmissing-declarations -Wmissing-prototypes \ -Wnested-externs -Wpointer-arith \ -Wpointer-arith -Wsign-compare -Wchar-subscripts \ -Wstrict-prototypes -Wshadow \ --Wformat-security -Wtype-limits" +-Wformat-security" AC_SUBST([my_CFLAGS]) AC_CONFIG_HEADERS([config.h tests/unit-test.h]) -- libgit2 0.21.4