mirror of
https://github.com/cuberite/SQLiteCpp.git
synced 2025-08-05 18:26:05 -04:00
Fixing unused parameter warning under Clang.
This commit is contained in:
parent
218aca1b13
commit
6adc4cd5a8
@ -211,6 +211,10 @@ void Database::createFunction(const char* apFuncName,
|
|||||||
void Database::loadExtension(const char* apExtensionName, const char *apEntryPointName)
|
void Database::loadExtension(const char* apExtensionName, const char *apEntryPointName)
|
||||||
{
|
{
|
||||||
#ifdef SQLITE_OMIT_LOAD_EXTENSION
|
#ifdef SQLITE_OMIT_LOAD_EXTENSION
|
||||||
|
// Unused
|
||||||
|
(void)apExtensionName;
|
||||||
|
(void)apEntryPointName;
|
||||||
|
|
||||||
throw std::runtime_error("sqlite extensions are disabled");
|
throw std::runtime_error("sqlite extensions are disabled");
|
||||||
#else
|
#else
|
||||||
#ifdef SQLITE_DBCONFIG_ENABLE_LOAD_EXTENSION // Since SQLite 3.13 (2016-05-18):
|
#ifdef SQLITE_DBCONFIG_ENABLE_LOAD_EXTENSION // Since SQLite 3.13 (2016-05-18):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user