mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-08-08 10:50:28 +00:00
Fix gnuc/llvm warnings for SQLite (reapply 5144c221
)
This commit is contained in:
parent
923f8f7875
commit
1d2bc5c99e
2 changed files with 11 additions and 0 deletions
6
third_party/sqlite3/btree.c
vendored
6
third_party/sqlite3/btree.c
vendored
|
@ -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.
|
||||
|
|
5
third_party/sqlite3/sqlite3session.c
vendored
5
third_party/sqlite3/sqlite3session.c
vendored
|
@ -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"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue