mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user