diff options
author | drh <> | 2023-11-17 12:22:42 +0000 |
---|---|---|
committer | drh <> | 2023-11-17 12:22:42 +0000 |
commit | f2bb6ab3fb5a67f2408e1bce102cd75ec51a44cd (patch) | |
tree | 62f26e8ef2a0a7e4bea491eeb718eac735c9208a /src | |
parent | c15133e82ac229e9954a9ad45b625ea3ea854eec (diff) | |
download | sqlite-f2bb6ab3fb5a67f2408e1bce102cd75ec51a44cd.tar.gz sqlite-f2bb6ab3fb5a67f2408e1bce102cd75ec51a44cd.zip |
Fix harmless compiler warnings in debugging code.
FossilOrigin-Name: ce6a75622ea5bca517bc6613e738aa670c9e1dd863596220eded5c2379c616c7
Diffstat (limited to 'src')
-rw-r--r-- | src/vdbe.c | 3 | ||||
-rw-r--r-- | src/vdbeaux.c | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/src/vdbe.c b/src/vdbe.c index 544c8d845..4ea508032 100644 --- a/src/vdbe.c +++ b/src/vdbe.c @@ -132,11 +132,12 @@ int sqlite3_found_count = 0; ** sqlite3CantopenError(lineno) */ static void test_trace_breakpoint(int pc, Op *pOp, Vdbe *v){ - static int n = 0; + static u64 n = 0; (void)pc; (void)pOp; (void)v; n++; + if( n==LARGEST_UINT64 ) abort(); /* So that n is used, preventing a warning */ } #endif diff --git a/src/vdbeaux.c b/src/vdbeaux.c index 1d9921b19..114a759c9 100644 --- a/src/vdbeaux.c +++ b/src/vdbeaux.c @@ -211,10 +211,11 @@ static int growOpArray(Vdbe *v, int nOp){ ** sqlite3CantopenError(lineno) */ static void test_addop_breakpoint(int pc, Op *pOp){ - static int n = 0; + static u64 n = 0; (void)pc; (void)pOp; n++; + if( n==LARGEST_UINT64 ) abort(); /* so that n is used, preventing a warning */ } #endif |