Commit 32062c78e1eee93c101371264297e9553b9d46cd
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 <sys/ioctl.h>]]) | @@ -111,12 +111,13 @@ AC_CHECK_DECLS([TIOCSRS485], [], [], [[#include <sys/ioctl.h>]]) | ||
| 111 | # Check for RTS flags | 111 | # Check for RTS flags |
| 112 | AC_CHECK_DECLS([TIOCM_RTS], [], [], [[#include <sys/ioctl.h>]]) | 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 | my_CFLAGS="-Wall \ | 115 | my_CFLAGS="-Wall \ |
| 115 | -Wmissing-declarations -Wmissing-prototypes \ | 116 | -Wmissing-declarations -Wmissing-prototypes \ |
| 116 | -Wnested-externs -Wpointer-arith \ | 117 | -Wnested-externs -Wpointer-arith \ |
| 117 | -Wpointer-arith -Wsign-compare -Wchar-subscripts \ | 118 | -Wpointer-arith -Wsign-compare -Wchar-subscripts \ |
| 118 | -Wstrict-prototypes -Wshadow \ | 119 | -Wstrict-prototypes -Wshadow \ |
| 119 | --Wformat-security -Wtype-limits" | 120 | +-Wformat-security" |
| 120 | AC_SUBST([my_CFLAGS]) | 121 | AC_SUBST([my_CFLAGS]) |
| 121 | 122 | ||
| 122 | AC_CONFIG_HEADERS([config.h tests/unit-test.h]) | 123 | AC_CONFIG_HEADERS([config.h tests/unit-test.h]) |