Переглянути джерело

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

Stéphane Raimbault 12 роки тому
батько
коміт
32062c78e1
1 змінених файлів з 2 додано та 1 видалено
  1. 2 1
      configure.ac

+ 2 - 1
configure.ac

@@ -111,12 +111,13 @@ AC_CHECK_DECLS([TIOCSRS485], [], [], [[#include <sys/ioctl.h>]])
 # Check for RTS flags
 AC_CHECK_DECLS([TIOCM_RTS], [], [], [[#include <sys/ioctl.h>]])
 
+# 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])