Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#375 Compiler warning in Exception.h with poco 1.3.6p2

Documentation
closed
nobody
5
2012-12-12
2010-08-13
Adam Stein
No

Same wvarhidenmem error message as seen in bug ID #3034863 for Foundation/include/Poco/Exception.h. Patch is included which just changes the variable name in Exception::message.

Discussion

  • Adam Stein
    Adam Stein
    2010-08-13

    Patch file for Foundation/include/Poco/Exception.h

     
    Attachments
  • I'm a bit confused about this one and the patch.
    Does this code (the original in 1.3.6) give the warning:

    inline void Exception::message(const std::string& msg)
    {
    _msg = msg;
    }

    which would be very strange, or this:

    inline void Exception::message(const std::string& message)
    {
    _msg = message;
    }

    where the warning would actually make sense?

     
  • The warning came with the original code which used 'msg' as the variable name. My patch simply changed 'msg' to 'message'.

     
  • Alex Fabijanic
    Alex Fabijanic
    2012-12-12

    fixed. closing.

     
  • Alex Fabijanic
    Alex Fabijanic
    2012-12-12

    • status: open --> closed
    • milestone: --> Documentation