We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 824f9c4 commit 08f8b58Copy full SHA for 08f8b58
src/property/types/automation/CloudTelevision.h
@@ -226,8 +226,14 @@ class CloudTelevision : public Property {
226
setAttribute(_cloud_value.swi, "swi");
227
setAttribute(_cloud_value.vol, "vol");
228
setAttribute(_cloud_value.mut, "mut");
229
+/* PlaybackCommands and InputValue are enum of type int so we can safely disable
230
+ * strict aliasing warnings here.
231
+ */
232
+#pragma GCC diagnostic push
233
+#pragma GCC diagnostic ignored "-Wstrict-aliasing"
234
setAttribute((int&)_cloud_value.pbc, "pbc");
235
setAttribute((int&)_cloud_value.inp, "inp");
236
+#pragma GCC diagnostic pop
237
setAttribute(_cloud_value.cha, "cha");
238
}
239
};
0 commit comments