gobject.h: Use correct format specifier for __LINE__
authorDavid King <dking@redhat.com>
Mon, 9 Feb 2015 11:23:58 +0000 (11:23 +0000)
committerRico Tzschichholz <ricotz@ubuntu.com>
Thu, 26 Feb 2015 11:32:43 +0000 (12:32 +0100)
commitd36f6a9633f18cbf14e8a52add66b40d8eb6a4da
treef18555aa1f44c76cc2096fa8b7f24bd33d63c209
parente966cc51de22a9f8b045f6f0f6f0de82f934d46d
gobject.h: Use correct format specifier for __LINE__

GCC 5.0, with its new -Wformat-signedness, warns about the sign being
different between a type and the format string in printf-format
messages, leading to compiler warnings with G_OBJECT_WARN_INVALID_PSPEC.
In other uses of __LINE__ inside GLib, %d is used, and GCC seems to
expect a format specifier of %d as well:
https://gcc.gnu.org/onlinedocs/cpp/Standard-Predefined-Macros.html

https://bugzilla.gnome.org/show_bug.cgi?id=744263
gobject/gobject.h