diff options
author | Marc Mutz <marc@kdab.net> | 2009-04-17 16:23:42 +0200 |
---|---|---|
committer | Thiago Macieira <thiago@kde.org> | 2009-05-13 15:50:51 +0200 |
commit | f719d454329a1a54ff2d569feaf10ceee7cead50 (patch) | |
tree | 069d099d0d3aa761e39a290532a65392170df7c4 /configure.in | |
parent | f76d17437ee95bb2621cb55c79707b9f01dcf89a (diff) |
configure.in: not all gccs support -Wno-pointer-sign
Signed-off-by: Thiago Macieira <thiago@kde.org>
Diffstat (limited to 'configure.in')
-rw-r--r-- | configure.in | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/configure.in b/configure.in index 6992487b..fd972b49 100644 --- a/configure.in +++ b/configure.in @@ -284,7 +284,10 @@ if test "x$GCC" = "xyes"; then esac case " $CFLAGS " in *[\ \ ]-Wno-pointer-sign[\ \ ]*) ;; - *) CFLAGS="$CFLAGS -Wno-pointer-sign" ;; + *) if cc_supports_flag -Wno-pointer-sign; then + CFLAGS="$CFLAGS -Wno-pointer-sign" + fi + ;; esac # http://bugs.freedesktop.org/show_bug.cgi?id=19195 |