diff options
author | Vsevolod Stakhov <vsevolod@rspamd.com> | 2022-04-30 20:05:49 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@rspamd.com> | 2022-04-30 20:05:49 +0100 |
commit | 51a5489a3ddb8babded5f39ce14e3f11265a381a (patch) | |
tree | 5cddbc91b3bf4f702aa990b729abc4df950f7cb9 | |
parent | 9c2eaa2adf06f937a44c7654431f680d691d9792 (diff) | |
download | rspamd-rework-symcache.tar.gz rspamd-rework-symcache.zip |
[Minor] Another compilers firefightingrework-symcache
-rw-r--r-- | src/libserver/symcache/symcache_impl.cxx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/libserver/symcache/symcache_impl.cxx b/src/libserver/symcache/symcache_impl.cxx index d5c442ab2..e86a52bf2 100644 --- a/src/libserver/symcache/symcache_impl.cxx +++ b/src/libserver/symcache/symcache_impl.cxx @@ -455,6 +455,8 @@ auto symcache::resort() -> void case tsort_mask::TEMP: return (it->order & (1u << 30)); } + + return 100500u; /* Because fuck compilers, that's why */ }; if (tsort_is_marked(it, tsort_mask::PERM)) { @@ -706,7 +708,7 @@ auto symcache::validate(bool strict) -> bool auto skipped = !ghost; if (item->is_scoreable() && g_hash_table_lookup(cfg->symbols, item->symbol.c_str()) == nullptr) { - if (!isnan(cfg->unknown_weight)) { + if (!std::isnan(cfg->unknown_weight)) { item->st->weight = cfg->unknown_weight; auto *s = rspamd_mempool_alloc0_type(static_pool, struct rspamd_symbol); |