Work around new clang warning void-pointer-to-enum-cast.

Not really a fix, just shuts up the warning. The fix is to not use
void* to hold integers, but that requires replacing all of the GLib
containers.
This commit is contained in:
John Ralls
2021-03-08 18:37:33 -08:00
parent 0f86f29dd8
commit 228f145bba

View File

@@ -159,7 +159,7 @@ toggle_changed (GtkToggleButton *button, GNCSearchReconciled *fe)
{
gboolean is_on = gtk_toggle_button_get_active (button);
cleared_match_t value =
(cleared_match_t) g_object_get_data (G_OBJECT (button), "button-value");
(cleared_match_t) ((uint64_t)g_object_get_data (G_OBJECT (button), "button-value") & 0xffffffff); // Binary mask to silence void-pointer-to-enum-cast warning.
if (is_on)
fe->value |= value;