aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--trunk/ChangeLog5
-rw-r--r--trunk/src/Makefile.am4
-rw-r--r--trunk/src/Makefile.in4
-rw-r--r--trunk/src/dso.c1
4 files changed, 10 insertions, 4 deletions
diff --git a/trunk/ChangeLog b/trunk/ChangeLog
index 7e9b213..e1870c4 100644
--- a/trunk/ChangeLog
+++ b/trunk/ChangeLog
@@ -1,5 +1,10 @@
2009-06-15 Jakub Jelinek <jakub@redhat.com>
+ * src/Makefile.am (DEFS, AM_CFLAGS): Add -Wno-pointer-sign.
+ * src/Makefile.in: Regenerated.
+ * src/data.c (reopen_dso): Initialize data variable to avoid
+ warnings.
+
* src/dwarf2.h (DW_TAG_condition, DW_TAG_shared_type): Define.
(DW_OP_form_tls_address, DW_OP_call_frame_cfa, DW_OP_bit_piece,
DW_OP_implicit_value, DW_OP_stack_value, DW_OP_GNU_uninit,
diff --git a/trunk/src/Makefile.am b/trunk/src/Makefile.am
index 882eeea..d2265aa 100644
--- a/trunk/src/Makefile.am
+++ b/trunk/src/Makefile.am
@@ -2,8 +2,8 @@
AUTOMAKE_OPTIONS = 1.4 gnu
-DEFS = -D_GNU_SOURCE -DHAVE_CONFIG_H -Wall
-AM_CFLAGS = -Wall
+DEFS = -D_GNU_SOURCE -DHAVE_CONFIG_H -Wall -Wno-pointer-sign
+AM_CFLAGS = -Wall -Wno-pointer-sign
AM_CPPFLAGS = -DSBINDIR='"@sbindir@"'
INCLUDES = @GELFINCLUDE@
diff --git a/trunk/src/Makefile.in b/trunk/src/Makefile.in
index 7dbe941..85cf845 100644
--- a/trunk/src/Makefile.in
+++ b/trunk/src/Makefile.in
@@ -97,8 +97,8 @@ install_sh = @install_sh@
AUTOMAKE_OPTIONS = 1.4 gnu
-DEFS = -D_GNU_SOURCE -DHAVE_CONFIG_H -Wall
-AM_CFLAGS = -Wall
+DEFS = -D_GNU_SOURCE -DHAVE_CONFIG_H -Wall -Wno-pointer-sign
+AM_CFLAGS = -Wall -Wno-pointer-sign
AM_CPPFLAGS = -DSBINDIR='"@sbindir@"'
INCLUDES = @GELFINCLUDE@
diff --git a/trunk/src/dso.c b/trunk/src/dso.c
index fcefafb..c12997b 100644
--- a/trunk/src/dso.c
+++ b/trunk/src/dso.c
@@ -844,6 +844,7 @@ reopen_dso (DSO *dso, struct section_move *move, const char *temp_base)
}
else
{
+ memset (&data, 0, sizeof data);
data.d_type = ELF_T_NUM;
data1 = NULL;
while ((data1 = elf_getdata (dso->scn[j], data1))