diff options
author | drh <> | 2022-04-07 13:48:34 +0000 |
---|---|---|
committer | drh <> | 2022-04-07 13:48:34 +0000 |
commit | 4cd8296f396e2df95cd3b693c6da7469968c8e44 (patch) | |
tree | 98b15de74ecf77e5a07334cbda63608002102bf2 /src | |
parent | 9c949b1c46870ef10fef6a09441cf1c0f3ac0472 (diff) | |
download | sqlite-4cd8296f396e2df95cd3b693c6da7469968c8e44.tar.gz sqlite-4cd8296f396e2df95cd3b693c6da7469968c8e44.zip |
Avoid compiler warnings about the new sqlite3Show() debugging routines
begin "defined but not used".
FossilOrigin-Name: 47ddc26974fbad8233c953d435e79d4f5dd5e09fbd684ea5f4ad32f4cae6cae6
Diffstat (limited to 'src')
-rw-r--r-- | src/main.c | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/src/main.c b/src/main.c index c17e1b89f..c40b3162a 100644 --- a/src/main.c +++ b/src/main.c @@ -4097,6 +4097,25 @@ int sqlite3_test_control(int op, ...){ volatile int x = 0; assert( /*side-effects-ok*/ (x = va_arg(ap,int))!=0 ); rc = x; +#if defined(SQLITE_DEBUG) + /* Invoke these debugging routines so that the compiler does not + ** issue "defined but not used" warnings. */ + if( x==9999 ){ + sqlite3ShowExpr(0); + sqlite3ShowExpr(0); + sqlite3ShowExprList(0); + sqlite3ShowIdList(0); + sqlite3ShowSrcList(0); + sqlite3ShowWith(0); + sqlite3ShowUpsert(0); + sqlite3ShowTriggerStep(0); + sqlite3ShowTriggerStepList(0); + sqlite3ShowTrigger(0); + sqlite3ShowTriggerList(0); + sqlite3ShowWindow(0); + sqlite3ShowWinFunc(0); + } +#endif break; } |