From 443586910045caa607d8c24941ed46ed95e3f03d Mon Sep 17 00:00:00 2001 From: Jeremy Lakeman Date: Thu, 5 Jun 2014 17:25:24 +0930 Subject: [PATCH] Fix unused variable warning in sqlite on some platforms --- sqlite-amalgamation-3070900/sqlite3.c | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/sqlite-amalgamation-3070900/sqlite3.c b/sqlite-amalgamation-3070900/sqlite3.c index 3f5ce2b4..f46ad4a7 100644 --- a/sqlite-amalgamation-3070900/sqlite3.c +++ b/sqlite-amalgamation-3070900/sqlite3.c @@ -7759,17 +7759,13 @@ typedef INT8_TYPE i8; /* 1-byte signed integer */ ** Macros to determine whether the machine is big or little endian, ** evaluated at runtime. */ -#ifdef SQLITE_AMALGAMATION -SQLITE_PRIVATE const int sqlite3one = 1; -#else -SQLITE_PRIVATE const int sqlite3one; -#endif #if defined(i386) || defined(__i386__) || defined(_M_IX86)\ || defined(__x86_64) || defined(__x86_64__) # define SQLITE_BIGENDIAN 0 # define SQLITE_LITTLEENDIAN 1 # define SQLITE_UTF16NATIVE SQLITE_UTF16LE #else +SQLITE_PRIVATE const int sqlite3one = 1; # define SQLITE_BIGENDIAN (*(char *)(&sqlite3one)==0) # define SQLITE_LITTLEENDIAN (*(char *)(&sqlite3one)==1) # define SQLITE_UTF16NATIVE (SQLITE_BIGENDIAN?SQLITE_UTF16BE:SQLITE_UTF16LE) @@ -20108,14 +20104,6 @@ SQLITE_PRIVATE void sqlite3PrngResetState(void){ */ /* #include */ -#ifndef SQLITE_AMALGAMATION -/* -** The following constant value is used by the SQLITE_BIGENDIAN and -** SQLITE_LITTLEENDIAN macros. -*/ -SQLITE_PRIVATE const int sqlite3one = 1; -#endif /* SQLITE_AMALGAMATION */ - /* ** This lookup table is used to help decode the first byte of ** a multi-byte UTF8 character.