diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2024-05-29 13:52:40 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2024-05-29 13:52:40 +0200 |
commit | cf5ac6d727321426776f6231293a68e82a38c157 (patch) | |
tree | c78e9def4058a9e1c70bd6e19ac42e3a0d54835d | |
parent | 4fa6521c562ebf09343353717fb7c927df1eee86 (diff) |
Suppress bogus GCC 14 -Wstringop-overread for sqlite3.c
-rw-r--r-- | libbutl-odb/buildfile | 6 |
1 files changed, 6 insertions, 0 deletions
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 |