app: Do not set max_n_props array length with const as per Apple Clang warning

This commit is contained in:
Bruno Lopes 2026-03-29 19:29:33 -03:00
parent 94f77bd256
commit 9e664f140d

View file

@ -1287,10 +1287,10 @@ static const gchar *expand_props[] =
"expand-mask-fill-type",
};
static const gint max_n_props = (G_N_ELEMENTS (brush_props) +
G_N_ELEMENTS (dynamics_props) +
G_N_ELEMENTS (gradient_props) +
G_N_ELEMENTS (expand_props));
#define max_n_props (G_N_ELEMENTS (brush_props) + \
G_N_ELEMENTS (dynamics_props) + \
G_N_ELEMENTS (gradient_props) + \
G_N_ELEMENTS (expand_props))
gboolean
gimp_paint_options_is_prop (const gchar *prop_name,
@ -1377,3 +1377,5 @@ gimp_paint_options_copy_props (GimpPaintOptions *src,
g_value_unset (&values[n_props]);
}
}
#undef max_n_props