Commit 32062c78e1eee93c101371264297e9553b9d46cd

Authored by Stéphane Raimbault
1 parent 5e2c73de

Remove unsupported -Wtype-limits for GCC < 4.3.5 (closes #109)

Showing 1 changed file with 2 additions and 1 deletions
configure.ac
... ... @@ -111,12 +111,13 @@ AC_CHECK_DECLS([TIOCSRS485], [], [], [[#include &lt;sys/ioctl.h&gt;]])
111 111 # Check for RTS flags
112 112 AC_CHECK_DECLS([TIOCM_RTS], [], [], [[#include <sys/ioctl.h>]])
113 113  
  114 +# Wtype-limits is not supported by gcc 4.2 (default on recent Mac OS X)
114 115 my_CFLAGS="-Wall \
115 116 -Wmissing-declarations -Wmissing-prototypes \
116 117 -Wnested-externs -Wpointer-arith \
117 118 -Wpointer-arith -Wsign-compare -Wchar-subscripts \
118 119 -Wstrict-prototypes -Wshadow \
119   --Wformat-security -Wtype-limits"
  120 +-Wformat-security"
120 121 AC_SUBST([my_CFLAGS])
121 122  
122 123 AC_CONFIG_HEADERS([config.h tests/unit-test.h])
... ...