+#if defined(__clang__) +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wunused-function" +Q_DECLARE_OPERATORS_FOR_FLAGS(DirtyStates) +#pragma clang diagnostic pop +#endif
Do you really mean we only need Q_DECLARE_OPERATORS_FOR_FLAGS() with clang? Maybe we just don't need it?
« Back to merge proposal
+#if defined(__clang__) OPERATORS_ FOR_FLAGS( DirtyStates)
+#pragma clang diagnostic push
+#pragma clang diagnostic ignored "-Wunused-function"
+Q_DECLARE_
+#pragma clang diagnostic pop
+#endif
Do you really mean we only need Q_DECLARE_ OPERATORS_ FOR_FLAGS( ) with clang? Maybe we just don't need it?