aboutsummaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
authordrh <>2023-08-03 13:30:00 +0000
committerdrh <>2023-08-03 13:30:00 +0000
commit86d77fd95da74bf60015f417c38bc3f8ce9e8823 (patch)
tree815dfaeff69b261cff6853c20fbba5e84673cb84 /src/main.c
parent038ac625afbc0a67c5ac9d5a9c780e8a28391baa (diff)
downloadsqlite-86d77fd95da74bf60015f417c38bc3f8ce9e8823.tar.gz
sqlite-86d77fd95da74bf60015f417c38bc3f8ce9e8823.zip
Fix build problems associated with SQLITE_OMIT_WSD and SQLITE_OMIT_TRIGGER.
FossilOrigin-Name: de031a5ec863b11f0216d1a114740c8cf4572adb034a5d35ff1a5c07d81df800
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/main.c b/src/main.c
index 35851b64e..cd0200890 100644
--- a/src/main.c
+++ b/src/main.c
@@ -4160,10 +4160,12 @@ int sqlite3_test_control(int op, ...){
sqlite3ShowSrcList(0);
sqlite3ShowWith(0);
sqlite3ShowUpsert(0);
+#ifndef SQLITE_OMIT_TRIGGER
sqlite3ShowTriggerStep(0);
sqlite3ShowTriggerStepList(0);
sqlite3ShowTrigger(0);
sqlite3ShowTriggerList(0);
+#endif
#ifndef SQLITE_OMIT_WINDOWFUNC
sqlite3ShowWindow(0);
sqlite3ShowWinFunc(0);
@@ -4470,6 +4472,7 @@ int sqlite3_test_control(int op, ...){
break;
}
+#if !defined(SQLITE_OMIT_WSD)
/* sqlite3_test_control(SQLITE_TESTCTRL_USELONGDOUBLE, int X);
**
** X<0 Make no changes to the bUseLongDouble. Just report value.
@@ -4484,6 +4487,7 @@ int sqlite3_test_control(int op, ...){
rc = sqlite3Config.bUseLongDouble!=0;
break;
}
+#endif
#if defined(SQLITE_DEBUG) && !defined(SQLITE_OMIT_WSD)