Pedantic compiler warnings

2007-05-14 Thread Andreas Fester
Hi, I have just commited a bunch of patches which were already part of my daily build at http://littletux.homelinux.org/log4cxx/ for some time. With these patches, log4cxx should now be buildable with much more pedantic warnings enabled, at least with gcc 3.3 it now builds with -pedantic-errors -

svn commit: r537910 - /logging/log4cxx/trunk/include/log4cxx/helpers/object.h

2007-05-14 Thread afester
Author: afester Date: Mon May 14 09:51:45 2007 New Revision: 537910 URL: http://svn.apache.org/viewvc?view=rev&rev=537910 Log: LOGCXX-14: tweak to avoid type mismatch warning between const and non-const type Modified: logging/log4cxx/trunk/include/log4cxx/helpers/object.h Modified: logging/l

svn commit: r537909 - in /logging/log4cxx/trunk: include/log4cxx/helpers/pool.h src/pool.cpp

2007-05-14 Thread afester
Author: afester Date: Mon May 14 09:50:21 2007 New Revision: 537909 URL: http://svn.apache.org/viewvc?view=rev&rev=537909 Log: LOGCXX-14: Made return value of Pool::getAPRPool() non-const to avoid "cast to non-const type" warning Modified: logging/log4cxx/trunk/include/log4cxx/helpers/pool.h

svn commit: r537907 - /logging/log4cxx/trunk/src/charsetdecoder.cpp

2007-05-14 Thread afester
Author: afester Date: Mon May 14 09:48:34 2007 New Revision: 537907 URL: http://svn.apache.org/viewvc?view=rev&rev=537907 Log: LOGCXX-14: added const-cast to avoid "cast to non-const" warning Modified: logging/log4cxx/trunk/src/charsetdecoder.cpp Modified: logging/log4cxx/trunk/src/charsetde

svn commit: r537906 - in /logging/log4cxx/trunk: include/log4cxx/helpers/condition.h include/log4cxx/helpers/mutex.h include/log4cxx/helpers/synchronized.h src/mutex.cpp

2007-05-14 Thread afester
Author: afester Date: Mon May 14 09:46:09 2007 New Revision: 537906 URL: http://svn.apache.org/viewvc?view=rev&rev=537906 Log: LOGCXX-14: Made member variables non-const to avoid "cast to non-const" warning Modified: logging/log4cxx/trunk/include/log4cxx/helpers/condition.h logging/log4c

svn commit: r537905 - in /logging/log4cxx/trunk: include/log4cxx/logger.h src/logger.cpp

2007-05-14 Thread afester
Author: afester Date: Mon May 14 09:43:12 2007 New Revision: 537905 URL: http://svn.apache.org/viewvc?view=rev&rev=537905 Log: LOGCXX-14: Made Logger::error and dependant methods const to avoid "cast to non-const" warning Modified: logging/log4cxx/trunk/include/log4cxx/logger.h logging/lo

svn commit: r537903 - in /logging/log4cxx/trunk: src/ tests/src/helpers/

2007-05-14 Thread afester
Author: afester Date: Mon May 14 09:40:32 2007 New Revision: 537903 URL: http://svn.apache.org/viewvc?view=rev&rev=537903 Log: LOGCXX-14: necessary casts to avoid range overflow warning Modified: logging/log4cxx/trunk/src/fileappender.cpp logging/log4cxx/trunk/src/unicodehelper.cpp l