Blame isl-0.16.1/m4/ax_set_warning_flags.m4
|
Packit |
fb9d21 |
dnl Add a set of flags to WARNING_FLAGS, that enable compiler warnings for
|
|
Packit |
fb9d21 |
dnl isl. The warnings that are enabled vary with the compiler and only include
|
|
Packit |
fb9d21 |
dnl warnings that did not trigger at the time of adding these flags.
|
|
Packit |
fb9d21 |
AC_DEFUN([AX_SET_WARNING_FLAGS],[dnl
|
|
Packit |
fb9d21 |
AX_COMPILER_VENDOR
|
|
Packit |
fb9d21 |
|
|
Packit |
fb9d21 |
WARNING_FLAGS=""
|
|
Packit |
fb9d21 |
|
|
Packit |
fb9d21 |
if test "${ax_cv_c_compiler_vendor}" = "clang"; then
|
|
Packit |
fb9d21 |
dnl isl is at the moment clean of -Wall warnings. If clang adds
|
|
Packit |
fb9d21 |
dnl new warnings to -Wall which cause false positives, the
|
|
Packit |
fb9d21 |
dnl specific warning types will be disabled explicitally (by
|
|
Packit |
fb9d21 |
dnl adding for example -Wno-return-type). To temporarily disable
|
|
Packit |
fb9d21 |
dnl all warnings run configure with CFLAGS=-Wno-all.
|
|
Packit |
fb9d21 |
WARNING_FLAGS="-Wall"
|
|
Packit |
fb9d21 |
fi
|
|
Packit |
fb9d21 |
])
|