isl_schedule.c: extract out reset_band
[isl.git] / m4 / ax_set_warning_flags.m4
blobc64ad7d8478b0cb4340ef8301a75233cbb9c8f94
1 dnl Add a set of flags to WARNING_FLAGS, that enable compiler warnings for
2 dnl isl. The warnings that are enabled vary with the compiler and only include
3 dnl warnings that did not trigger at the time of adding these flags.
4 AC_DEFUN([AX_SET_WARNING_FLAGS],[dnl
5         AX_COMPILER_VENDOR
7         WARNING_FLAGS=""
9         if test "${ax_cv_c_compiler_vendor}" = "clang"; then
10                 dnl isl is at the moment clean of -Wall warnings.  If clang adds
11                 dnl new warnings to -Wall which cause false positives, the
12                 dnl specific warning types will be disabled explicitally (by
13                 dnl adding for example -Wno-return-type). To temporarily disable
14                 dnl all warnings run configure with CFLAGS=-Wno-all.
15                 WARNING_FLAGS="-Wall"
16         fi