You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4cxx-dev@logging.apache.org by af...@apache.org on 2007/01/07 22:25:02 UTC

svn commit: r493847 - /logging/log4cxx/trunk/src/loggingevent.cpp

Author: afester
Date: Sun Jan  7 13:25:01 2007
New Revision: 493847

URL: http://svn.apache.org/viewvc?view=rev&rev=493847
Log:
LOGCXX-140: cast-tweak to fix compilation failure with gcc-3.3 
when pedantic warnings are enables (see also LOGCXX-14)

Modified:
    logging/log4cxx/trunk/src/loggingevent.cpp

Modified: logging/log4cxx/trunk/src/loggingevent.cpp
URL: http://svn.apache.org/viewvc/logging/log4cxx/trunk/src/loggingevent.cpp?view=diff&rev=493847&r1=493846&r2=493847
==============================================================================
--- logging/log4cxx/trunk/src/loggingevent.cpp (original)
+++ logging/log4cxx/trunk/src/loggingevent.cpp Sun Jan  7 13:25:01 2007
@@ -204,7 +204,7 @@
    char result[sizeof(apr_os_thread_t) * 2 + 10];
    result[0] = '0';
    result[1] = 'x';   apr_os_thread_t threadId = apr_os_thread_current();
-   apr_snprintf(result+2, (sizeof result) - 2, "%pt", &threadId);
+   apr_snprintf(result+2, (sizeof result) - 2, "%pt", (void*) &threadId);
 #endif
    LOG4CXX_DECODE_CHAR(str, (const char*) result);
    return str;