mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-02-05 10:38:08 +01:00
c447bc7f93
Using G_STRLOC ends up embedding unique strings of the form __FILE__:__LINE__ in the compiled binary. We can avoid these by passing __FILE__ and __LINE__ separately when constructing the warning text. This probably reduces the size of the binary as __FILE__ is likely already contained as string otherwise. Note that for GCC 2.x this changes behavior because G_STRLOC also contained __PRETTY_FUNCTION__. https://bugzilla.gnome.org/show_bug.cgi?id=741654