Skip to content

Commit 34e7f1b

Browse files
committed
omit unused profiling function under certain defines
1 parent d7f468c commit 34e7f1b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/crypto_impl.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1535,11 +1535,13 @@ int sqlcipher_codec_add_random(codec_ctx *ctx, const char *zRight, int random_sz
15351535
return SQLITE_ERROR;
15361536
}
15371537

1538+
#if !defined(SQLITE_OMIT_TRACE) && !defined(SQLITE_OMIT_DEPRECATED)
15381539
static void sqlcipher_profile_callback(void *file, const char *sql, sqlite3_uint64 run_time){
15391540
FILE *f = (FILE*)file;
15401541
double elapsed = run_time/1000000.0;
15411542
if(f) fprintf(f, "Elapsed time:%.3f ms - %s\n", elapsed, sql);
15421543
}
1544+
#endif
15431545

15441546
int sqlcipher_cipher_profile(sqlite3 *db, const char *destination){
15451547
#if defined(SQLITE_OMIT_TRACE) || defined(SQLITE_OMIT_DEPRECATED)

0 commit comments

Comments
 (0)