Disable warnings for sqlite in Visual Studio.

This commit is contained in:
Stephen Anthony 2021-12-19 22:02:35 -03:30
parent bfc59ddcc3
commit 6dc8c51395
1 changed files with 5 additions and 1 deletions

View File

@ -21,11 +21,15 @@
* We can't control the quality of code from outside projects, so for now * We can't control the quality of code from outside projects, so for now
* just disable warnings for it. * just disable warnings for it.
*/ */
#ifdef __clang__ #if defined(__clang__)
#pragma clang diagnostic push #pragma clang diagnostic push
#pragma clang diagnostic ignored "-Weverything" #pragma clang diagnostic ignored "-Weverything"
#include "source/sqlite3.c" #include "source/sqlite3.c"
#pragma clang diagnostic pop #pragma clang diagnostic pop
#elif defined(BSPF_WINDOWS)
#pragma warning(push, 0)
#include "source/sqlite3.c"
#pragma warning(pop)
#else #else
#include "source/sqlite3.c" #include "source/sqlite3.c"
#endif #endif