[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-devel
Subject:    arts/mcop compile problem
From:       Willy De la Court <Willy.DelaCourt () pandora ! be>
Date:       2003-02-27 13:58:45
[Download RAW message or body]

Hi all,


[wdl@enterprise mcop]$ make
source='debug.cc' object='debug.lo' libtool=yes \
depfile='.deps/debug.Plo' tmpdepfile='.deps/debug.TPlo' \
depmode=gcc3 /bin/sh ../admin/depcomp \
/bin/sh ../libtool --silent --mode=compile --tag=CXX g++ -DHAVE_CONFIG_H -I. 
-I. -I.. -I../libltdl -I/opt/kde/include -I/opt/kde-build/qt-copy/include 
-I/usr/X11R6/include  -I../libltdl -DEXTENSION_DIR='"/opt/kde/lib"' 
-DTRADER_DIR='"/opt/kde/lib/mcop"' -DQT_THREAD_SUPPORT  -D_REENTRANT  
-Wnon-virtual-dtor -Wno-long-long -Wundef -Wall -pedantic -W -Wpointer-arith 
-Wmissing-prototypes -Wwrite-strings -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE 
-Wcast-align -Wconversion -Wchar-subscripts -DNDEBUG -DNO_DEBUG -O2 
-fno-exceptions -fno-check-new -fno-common  -ftemplate-depth-99  -c -o 
debug.lo `test -f 'debug.cc' || echo './'`debug.cc
debug.cc: In function `char *arts_strdup_vprintf (const char *, void
*)':
debug.cc:796: parse error before `,'
debug.cc:787: warning: `gchar *buffer' might be used uninitialized in
this function
debug.cc: At top level:
debug.cc:491: warning: `gsize printf_string_upper_bound (const gchar *,
int, void *)' defined but not used
make: *** [debug.lo] Error 1

the problem seems to be g_new

this is from the latest cvs a change was made yesterday

[wdl@enterprise mcop]$ cvs diff -r 1.10 debug.cc
Index: debug.cc
===================================================================
RCS file: /home/kde/arts/mcop/debug.cc,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -p -r1.10 -r1.11
--- debug.cc    12 Dec 2002 16:17:08 -0000      1.10
+++ debug.cc    26 Feb 2003 22:05:50 -0000      1.11
@@ -785,15 +785,19 @@ static char*
 arts_strdup_vprintf (const char *format, va_list args1)
 {
   gchar *buffer;
+#ifdef HAVE_VASPRINTF
+  if (vasprintf (&buffer, format, args1) < 0)
+    buffer = NULL;
+#else
   va_list args2;

   G_VA_COPY (args2, args1);

-  buffer = (gchar *)malloc (printf_string_upper_bound (format, TRUE, args1));
+  buffer = g_new (gchar, g_printf_string_upper_bound (format, args1));

   vsprintf (buffer, format, args2);
   va_end (args2);
-
+#endif
   return buffer;
 }


i can't find any definition for g_new anywhere in the include paths

-- 
Simple things make people happy.
Willy De la Court

 
>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic