From 725fa0199bdf612f099a76fa2c36424554a71ff8 Mon Sep 17 00:00:00 2001 From: Richard Kreckel Date: Mon, 21 Sep 2015 23:04:20 +0200 Subject: [PATCH] Include crc32.h only if needed. This shuts up a compiler warning about unused static function crc32. --- ginac/hash_seed.h | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/ginac/hash_seed.h b/ginac/hash_seed.h index 6cf65acb..c0fb4b89 100644 --- a/ginac/hash_seed.h +++ b/ginac/hash_seed.h @@ -7,11 +7,15 @@ #include #include -#include "crc32.h" #include "utils.h" #ifdef _WIN32 #define GINAC_HASH_USE_MANGLED_NAME 1 #endif + +#ifdef GINAC_HASH_USE_MANGLED_NAME +#include "crc32.h" +#endif + namespace GiNaC { /** @@ -24,7 +28,7 @@ namespace GiNaC * the pointer returned by type_info::name() might be different even for * objects of the same type! Hence we need to resort to comparing string * representation of the (mangled) type names. This is quite expensive, - * so we compare crc32 hashes of those strings. We might got more hash + * so we compare crc32 hashes of those strings. We might get more hash * collisions (and slower evaluation as a result), but being a bit slower * is much better than being wrong. */ -- 2.44.0