Add more 'fall through' switch comments
[openafs.git] / src / cf / osconf.m4
index a765717..12125ce 100644 (file)
@@ -658,6 +658,11 @@ else
   esac
 fi
 
+dnl add additional checks if compilers support the flags
+AS_IF([test "x$enable_checking" != "xno"],
+      [AX_APPEND_COMPILE_FLAGS([-Wimplicit-fallthrough], [XCFLAGS])
+])
+
 dnl horribly cheating, assuming double / is ok.
 case $INSTALL in
   ./* )