From: Vsevolod Stakhov Date: Mon, 8 Apr 2019 15:56:22 +0000 (+0100) Subject: [Minor] Remove redundant code and to stop compiler whinging X-Git-Tag: 1.9.2~53 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2705479096ffa49350f4d9472be013e9a053d15f;p=thirdparty%2Frspamd.git [Minor] Remove redundant code and to stop compiler whinging Issue: #2251 Submitted by: @beiDei8z --- diff --git a/src/libutil/sqlite_utils.c b/src/libutil/sqlite_utils.c index b1e33cb64c..9c29695426 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="