1
0
mirror of https://gitlab.gnome.org/GNOME/glib.git synced 2026-10-24 00:49:00 +03:00

Merge branch 'quark-const' into 'main'

gquark: Fix an incorrect G_GNUC_CONST annotation on g_quark_to_string()

See merge request GNOME/glib!5224
This commit is contained in:
Philip Withnall
2026-06-25 17:29:00 +00:00
2 changed files with 2 additions and 2 deletions

View File

@@ -595,7 +595,7 @@ class Property:
self.name_lower = utils.camel_case_to_uscore(name).lower().replace("-", "_")
self.name_hyphen = self.name_lower.replace("_", "-")
# don't clash with the GType getter, e.g.:
# GType foo_bar_get_type (void); G_GNUC_CONST
# GType foo_bar_get_type (void);
if self.name_lower == "type":
self.name_lower = "type_"

View File

@@ -46,7 +46,7 @@ GQuark g_quark_from_static_string (const gchar *string);
GLIB_AVAILABLE_IN_ALL
GQuark g_quark_from_string (const gchar *string);
GLIB_AVAILABLE_IN_ALL
const gchar * g_quark_to_string (GQuark quark) G_GNUC_CONST;
const gchar * g_quark_to_string (GQuark quark) G_GNUC_PURE;
#define G_DEFINE_QUARK(QN, q_n) \
GQuark \