Suppressed some GCC warnings caused by previous commit
#define SQLITE_OMIT_TRACE 1
#define SQLITE_OMIT_WAL 1
+#ifndef _WIN32
+// Some features doesn't remove its functions/variables declarations when omitted, making
+// compilers throw some 'unused functions/variables' warnings which can be safely ignored.
+// SQLite code already ignore them on MSVC, but on GCC they must be ignored manually here.
+#pragma GCC diagnostic ignored "-Wunused-function"
+#pragma GCC diagnostic ignored "-Wunused-value"
+#pragma GCC diagnostic ignored "-Wunused-variable"
+#pragma GCC diagnostic ignored "-Wunused-but-set-variable"
+#endif
+
/************** End of Sphere custom settings ********************************/
/************** Begin file ctime.c *******************************************/
/*
