From e349c8fc9ce3fd5e10bed6479dfbf0c44deae47c Mon Sep 17 00:00:00 2001 From: Andrew Bettison Date: Thu, 5 Apr 2018 21:16:03 +0930 Subject: [PATCH] Remove -Wimplicit-fallthrough #pragma from sqlite3.c (fixes #128) Replace it with the -Wno-implicit-fallthrough CFLAGS_SQLITE option in configure.ac, so it no longer causes compile errors with older compilers that don't support that warning. --- configure.ac | 1 + sqlite-amalgamation-3140200/sqlite3.c | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index ada95c52..9de9f6fa 100644 --- a/configure.ac +++ b/configure.ac @@ -263,6 +263,7 @@ AX_APPEND_COMPILE_FLAGS([ \ -Wno-unused-but-set-variable \ -Wno-missing-field-initializers \ -Wno-deprecated-declarations \ + -Wno-implicit-fallthrough \ '-Wno-#warnings' \ ], [CFLAGS_SQLITE], [-Werror]) diff --git a/sqlite-amalgamation-3140200/sqlite3.c b/sqlite-amalgamation-3140200/sqlite3.c index 9c28e86c..b266b67e 100644 --- a/sqlite-amalgamation-3140200/sqlite3.c +++ b/sqlite-amalgamation-3140200/sqlite3.c @@ -1,4 +1,3 @@ -#pragma GCC diagnostic ignored "-Wimplicit-fallthrough" /****************************************************************************** ** This file is an amalgamation of many separate C source files from SQLite ** version 3.14.2. By combining all the individual C code files into this