Add DBUS_INT64_MODIFIER define, turn on -Wformat
authorColin Walters <walters@lightbox.localdomain>
Mon, 22 Mar 2010 15:50:24 +0000 (11:50 -0400)
committerColin Walters <walters@verbum.org>
Mon, 22 Mar 2010 17:58:56 +0000 (13:58 -0400)
commitc93d3ec2ff13f31291c56f6d5d4f7a77ecdb5ea7
tree6e9e3b9c07f54b0b4e947ea1ed67535b587b3c1f
parent03bb3ce656e9b14fe643572dd0d39f82e955f1f5
Add DBUS_INT64_MODIFIER define, turn on -Wformat

https://bugs.freedesktop.org/show_bug.cgi?id=19195

We were previously using -Wno-format because we didn't have
a #define for DBUS_INT64_MODIFIER, which was really lame because
it easily hid problems.

For now, just define it if we're on glibc; this is obviously
not strictly correct but it's safe, because the formatting
is only used in DBUS_VERBOSE mode, and in tools/dbus-monitor.
Ideally we get the the glib code relicensed.
configure.in
dbus/dbus-connection.c
dbus/dbus-credentials.c
dbus/dbus-marshal-basic.c
dbus/dbus-marshal-recursive-util.c
tools/dbus-print-message.c