Fix gnuc/llvm warnings for SQLite (reapply 5144c221)

This commit is contained in:
Paul Kulchenko 2022-11-22 20:43:04 -08:00
parent 923f8f7875
commit 1d2bc5c99e
2 changed files with 11 additions and 0 deletions

View file

@ -15,6 +15,12 @@
*/
#include "third_party/sqlite3/btreeInt.h"
#if defined(__GNUC__) && !defined(__llvm__)
#pragma GCC diagnostic ignored "-Wmaybe-uninitialized"
#endif
/* clang-format off */
/*
** The header string that appears at the beginning of every
** SQLite database.

View file

@ -1,9 +1,14 @@
/* clang-format off */
#if defined(SQLITE_ENABLE_SESSION) && defined(SQLITE_ENABLE_PREUPDATE_HOOK)
#include "third_party/sqlite3/sqlite3session.h"
#include "libc/assert.h"
#include "libc/str/str.h"
#if defined(__GNUC__) && !defined(__llvm__)
#pragma GCC diagnostic ignored "-Wmaybe-uninitialized"
#endif
#ifndef SQLITE_AMALGAMATION
# include "third_party/sqlite3/sqliteInt.h"
# include "third_party/sqlite3/vdbeInt.h"