diff base/Event.h @ 1803:6eb3a76c74f7

Make static to avoid multiple definitions
author Chris Cannam
date Thu, 10 Oct 2019 10:03:31 +0100
parents c48548a85622
children c546429d4c2f
line wrap: on
line diff
--- a/base/Event.h	Thu Oct 10 09:47:25 2019 +0100
+++ b/base/Event.h	Thu Oct 10 10:03:31 2019 +0100
@@ -27,7 +27,10 @@
 #include <QString>
 
 #if (QT_VERSION < QT_VERSION_CHECK(5, 3, 0))
-uint qHash(float key, uint seed = 0) {
+#ifdef __GNUC__
+#pragma GCC diagnostic ignored "-Wunused-function"
+#endif
+static uint qHash(float key, uint seed = 0) {
     uint h = seed;
     const uchar *p = reinterpret_cast<const uchar *>(&key);
     for (size_t i = 0; i < sizeof(key); ++i) {