# HG changeset patch # User Chris Cannam # Date 1570698211 -3600 # Node ID 6eb3a76c74f7147bd66e1cbc43fd9dd1a35ddaf8 # Parent c48548a8562265da5b4c1c95617240d7229bcdac Make static to avoid multiple definitions diff -r c48548a85622 -r 6eb3a76c74f7 base/Event.h --- 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 #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(&key); for (size_t i = 0; i < sizeof(key); ++i) {