< Previous by Date Date Index Next by Date >
  Thread Index  

[reSIProcate] gcc 4.3 warnings


Hi

when compiling resiprocate-trunk (r8112) with gcc 4.3.1 from Debian Lenny,
I get a lot of warnings:


1.)

g++ -march=i686 -D_REENTRANT -g -Wall -I../.. -I../../build/.. -I../../build/.. -I../../build/../contrib/ares -DOS_MAJOR_VER=2 -DOS_MINOR_VER=6 -DOS_POINT_VER=24-1-686 -DOS_PATCH_VER=0 -DUSE_ARES -DPEDANTIC_STACK -DUSE_SSL -c -o obj.debug.Linux.i686/Contents.o Contents.cxx
In file included from /usr/include/c++/4.3/ext/hash_map:64,
                 from ../../rutil/HashMap.hxx:7,
                 from ../../rutil/Data.hxx:10,
                 from ../../rutil/BaseException.hxx:7,
                 from ../../rutil/ParseException.hxx:4,
                 from ../../resip/stack/HeaderFieldValue.hxx:4,
                 from ../../resip/stack/LazyParser.hxx:5,
                 from ../../resip/stack/Contents.hxx:7,
                 from Contents.cxx:7:
/usr/include/c++/4.3/backward/backward_warning.h:32:2: warning: #warning This file includes at least one deprecated or antiquated header which may be removed without further notice at a future date. Please use a non-deprecated interface with equivalent functionality instead. For a listing of replacement headers and interfaces, consult the file backward_warning.h. To disable this warning use -Wno-deprecated.


this warning pops up for each file that includes rutil/HashMap.hxx



2.)

also there are many warnings like this:

testStack.cxx:35: warning: deprecated conversion from string constant to ‘char*’



3.)

testPlainContents.cxx:77: error: ‘int main(int)’ takes only zero or two 
arguments


should be fixed by this patch:

Index: resip/stack/test/testPlainContents.cxx
===================================================================
--- resip/stack/test/testPlainContents.cxx      (revisjon 8112)
+++ resip/stack/test/testPlainContents.cxx      (arbeidskopi)
@@ -74,7 +74,7 @@
 }

 int
-main(int argc)
+main(int argc, char *argv[])
 {
    {
       const Data txt("some plain text");
Index: resip/stack/test/testThreads.c
===================================================================
--- resip/stack/test/testThreads.c      (revisjon 8112)
+++ resip/stack/test/testThreads.c      (arbeidskopi)
@@ -12,7 +12,7 @@
   pthread_mutex_unlock(&rmutex);
 }

-int main(int argc) {
+int main(int argc, char *argv[]) {
   pthread_t thread;
   pthread_mutexattr_t mutexattr;
   pthread_mutexattr_init(&mutexattr);



/alfred