[
https://issues.apache.org/jira/browse/LOGCXX-314?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Thorsten Schöning resolved LOGCXX-314.
--------------------------------------
Resolution: Fixed
This already got applied to trunk.
> Building with -Wall -W yields warnings
> --------------------------------------
>
> Key: LOGCXX-314
> URL: https://issues.apache.org/jira/browse/LOGCXX-314
> Project: Log4cxx
> Issue Type: Bug
> Affects Versions: 0.10.0
> Environment: Ubuntu 8.04, gcc 4.2.3
> Reporter: Josh Faust
> Assignee: Curt Arnold
> Attachments: warnings.patch
>
>
> Building with -Wall -W yields a whole lot of:
> objectptr.h:74: warning: base class 'class log4cxx::helpers::ObjectPtrBase'
> should be explicitly initialized in the copy constructor
> This wouldn't be a big deal if it didn't also affect everything including
> log4cxx.h. The fix is simple:
> #if LOG4CXX_HELGRIND
> #define _LOG4CXX_OBJECTPTR_INIT(x) : ObjectPtrBase() { exchange(x);
> #else
> #define _LOG4CXX_OBJECTPTR_INIT(x) : ObjectPtrBase(), p(x) {
> #endif
--
This message was sent by Atlassian JIRA
(v6.1.5#6160)