build: Enable stricter warnings and fix the biggest complaints
authorEmanuele Aina <emanuele.aina@collabora.com>
Sat, 21 Sep 2013 12:03:02 +0000 (14:03 +0200)
committerEmanuele Aina <emanuele.aina@collabora.com>
Sat, 21 Sep 2013 13:38:50 +0000 (15:38 +0200)
commit4253880fcbdc286dc456ccfa7d29503efba0d921
tree4d71a0acb2af3d73c31ea7aa89f1b24eb9b676d3
parenta5acf8ad9d879091cab81ebbb8c6b77eaa6af525
build: Enable stricter warnings and fix the biggest complaints

Pointer arithmetics with (void*) is not well defined, it's better to
explicitly use (char*) to do byte arithmetics.

Also, the "%p" format in printf is not guaranteed to print pointers in
the 0xNNNN format, better to explicitly force this kind of formatting.
14 files changed:
configure.ac
m4/attributes.m4 [new file with mode: 0644]
src/cmdparse.c
src/help.c
src/refdbg.c
src/symsnarf.c
src/user.c
tests/error1.c
tests/error1.ref
tests/error2.ref
tests/gobject1.ref
tests/gobject2.ref
tests/gobject3.ref
tests/tests.c