From cf5ac6d727321426776f6231293a68e82a38c157 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Wed, 29 May 2024 13:52:40 +0200 Subject: Suppress bogus GCC 14 -Wstringop-overread for sqlite3.c --- libbutl-odb/buildfile | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/libbutl-odb/buildfile b/libbutl-odb/buildfile index 10178bd..9fff963 100644 --- a/libbutl-odb/buildfile +++ b/libbutl-odb/buildfile @@ -46,6 +46,9 @@ if! $sys_sqlite sqlite/ { + # @@ TMP: add -DSQLITE_DQS=0, -DSQLITE_OMIT_DEPRECATED=1 + # @@ TODO: maybe use -DSQLITE_OMIT_AUTOINIT? + c.poptions += \ -DSQLITE_ALLOW_ROWID_IN_VIEW=1 \ -DSQLITE_ENABLE_COLUMN_METADATA=1 \ @@ -95,6 +98,9 @@ if! $sys_sqlite if $gcc c.coptions += -Wno-unused-variable -Wno-extra -Wno-error + + if ($c.id == 'gcc' && $c.version.major >= 14) + c.coptions += -Wno-stringop-overread } if! $windows -- cgit v1.1