From 2705479096ffa49350f4d9472be013e9a053d15f Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Mon, 8 Apr 2019 16:56:22 +0100 Subject: [PATCH] [Minor] Remove redundant code and to stop compiler whinging Issue: #2251 Submitted by: @beiDei8z --- src/libutil/sqlite_utils.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/libutil/sqlite_utils.c b/src/libutil/sqlite_utils.c index b1e33cb64..9c2969542 100644 --- a/src/libutil/sqlite_utils.c +++ b/src/libutil/sqlite_utils.c @@ -297,8 +297,10 @@ rspamd_sqlite3_open_or_create (rspamd_mempool_t *pool, const gchar *path, const foreign_keys[] = "PRAGMA foreign_keys=\"ON\";", +#if defined(__LP64__) || defined(_LP64) enable_mmap[] = "PRAGMA mmap_size=" G_STRINGIFY(RSPAMD_SQLITE_MMAP_LIMIT) ";", +#endif other_pragmas[] = "PRAGMA read_uncommitted=\"ON\";" "PRAGMA cache_size=" -- 2.39.5