diff --git a/libraries/shared/src/PortableHighResolutionClock.h b/libraries/shared/src/PortableHighResolutionClock.h index 383c6cdf3e..5650a27f3c 100644 --- a/libraries/shared/src/PortableHighResolutionClock.h +++ b/libraries/shared/src/PortableHighResolutionClock.h @@ -51,6 +51,9 @@ using p_high_resolution_clock = std::chrono::high_resolution_clock; Q_DECLARE_METATYPE(p_high_resolution_clock::time_point); +#if defined(__GNUC__) && !defined(__clang__) +__attribute__((unused)) +#endif static const int timePointMetaTypeID = qRegisterMetaType(); #endif // hifi_PortableHighResolutionClock_h