From f6b51897d0f2b5e149defe4901965d056cb6ebd7 Mon Sep 17 00:00:00 2001 From: "Brian C. Lane" Date: Wed, 17 Oct 2018 16:56:44 -0700 Subject: Adjust the gcc warnings to recognize FALLTHROUGH --- configure.ac | 3 +++ 1 file changed, 3 insertions(+) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index 281aad7..7ab056b 100644 --- a/configure.ac +++ b/configure.ac @@ -241,6 +241,9 @@ if test "$gl_gcc_warnings" = yes; then gl_WARN_ADD([-fdiagnostics-show-option]) + # Make sure it recognizes /* FALLTHROUGH */ comment + gl_WARN_ADD([-Wimplicit-fallthrough=3]) + AC_SUBST([WARN_CFLAGS]) AC_DEFINE([lint], [1], [Define to 1 if the compiler is checking for lint.]) -- cgit v1.2.1