From df34d0845b3a23aafeeed4e1a4e11f7ea9e0ac6e Mon Sep 17 00:00:00 2001 From: Paul Kulchenko Date: Thu, 24 Nov 2022 11:08:39 -0800 Subject: [PATCH] Suppress uninitialized warning This suppresses the following warning (treated as error): third_party/sqlite3/geopoly.inc:638:9: error: 'a.f' may be used uninitialized in this function [-Werror=maybe-uninitialized] 638 | mnX = aCoord[0].f; --- third_party/sqlite3/geopoly.inc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/third_party/sqlite3/geopoly.inc b/third_party/sqlite3/geopoly.inc index ae420fd7f..54188a9f4 100644 --- a/third_party/sqlite3/geopoly.inc +++ b/third_party/sqlite3/geopoly.inc @@ -27,6 +27,10 @@ # define GEODEBUG(X) #endif +#if defined(__GNUC__) && !defined(__llvm__) +#pragma GCC diagnostic ignored "-Wmaybe-uninitialized" +#endif + /* Character class routines */ #ifdef sqlite3Isdigit /* Use the SQLite core versions if this routine is part of the