Opened 9 years ago

Closed 9 years ago

#9106 closed Bugs (fixed)

unused parameter warning in lexical_cast with clang

Reported by: Mathias Gaunard Owned by: Antony Polukhin
Milestone: To Be Determined Component: lexical_cast
Version: Boost Development Trunk Severity: Problem
Keywords: Cc:

Description

/home/nt2/dev/boost/trunk/boost/lexical_cast.hpp:1449:57: warning: unused parameter 'begin' [-Wunused-parameter]
            bool shl_real_type(const T& val, SomeCharT* begin, SomeCharT*& end) {
                                                        ^
/home/nt2/dev/boost/trunk/boost/lexical_cast.hpp:1449:76: warning: unused parameter 'end' [-Wunused-parameter]
            bool shl_real_type(const T& val, SomeCharT* begin, SomeCharT*& end) {
                                                                           ^
2 warnings generated.

Patch attached.

Attachments (1)

lexical_cast_warning.diff (550 bytes ) - added by Mathias Gaunard 9 years ago.

Download all attachments as: .zip

Change History (2)

by Mathias Gaunard, 9 years ago

Attachment: lexical_cast_warning.diff added

comment:1 by Antony Polukhin, 9 years ago

Resolution: fixed
Status: newclosed

(In [85683]) Fix unused parameter warning (fix #9106)

Note: See TracTickets for help on using tickets.