commit 2705479: [Minor] Remove redundant code and to stop compiler whinging

Vsevolod Stakhov vsevolod at highsecure.ru
Mon Apr 8 16:00:05 UTC 2019


Author: Vsevolod Stakhov
Date: 2019-04-08 16:56:22 +0100
URL: https://github.com/rspamd/rspamd/commit/2705479096ffa49350f4d9472be013e9a053d15f (HEAD -> master)

[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="


More information about the Commits mailing list