Package: libdebian-installer
Severity: normal
Tags: patch

When building 'libdebian-installer' on amd64 with gcc-4.0,
I get the following error:

 x86_64-linux-gcc -DHAVE_CONFIG_H -I. -I../../src -I.. 
-I../include/debian-installer -I../../include -Wall -W -Werror -gstabs 
-Wmissing-declarations -Os -fomit-frame-pointer -MT log.lo -MD -MP -MF 
.deps/log.Tpo -c ../../src/log.c  -fPIC -DPIC -o .libs/log.o
cc1: warnings being treated as errors
../../src/log.c: In function 'di_vlog':
../../src/log.c:225: warning: 'user_data' may be used uninitialized in this 
function
make[4]: *** [log.lo] Error 1
make[4]: Leaving directory `/libdebian-installer-0.29/build/src'

With the attached patch 'libdebian-installer' can be compiled
on amd64 using gcc-4.0.

Regards
Andreas Jochens

diff -urN ../tmp-orig/libdebian-installer-0.29/src/log.c ./src/log.c
--- ../tmp-orig/libdebian-installer-0.29/src/log.c      2004-03-22 
17:37:05.000000000 +0100
+++ ./src/log.c 2004-12-27 14:03:17.668273024 +0100
@@ -222,7 +222,7 @@
   char buf[1024];
   int fatal = log_level & DI_LOG_FATAL_MASK;
   di_log_handler *log_func;
-  void *user_data;
+  void *user_data=0;
 
   vsnprintf (buf, sizeof (buf), format, args);
 


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to