Opened 9 years ago

Closed 9 years ago

#8744 closed Bugs (duplicate)

Unused Str alias in xml_parser_write.hpp

Reported by: Mateusz Loskot Owned by: Sebastian Redl
Milestone: To Be Determined Component: property_tree
Version: Boost Development Trunk Severity: Problem
Keywords: Cc:

Description

There are number of places in boost/property_tree/detail/xml_parser_write.hpp with

typedef typename std::basic_string<Ch> Str;

but without use of Str in following code. This leads to annoying compilation warnings.

Is it possible to remove those lines?

Attachments (1)

property_tree.patch (827 bytes ) - added by Chris Stylianou <chris5287@…> 9 years ago.

Download all attachments as: .zip

Change History (3)

comment:1 by Chris Stylianou <chris5287@…>, 9 years ago

GCC 4.8+ warns unused local typedef...

xml_parser_write.hpp:38
typedef ‘Str’ locally defined but not used [-Wunused-local-typedefs]
xml_parser_write.hpp:72
typedef ‘Str’ locally defined but not used [-Wunused-local-typedefs]

Proposed fix attached.

by Chris Stylianou <chris5287@…>, 9 years ago

Attachment: property_tree.patch added

comment:2 by Sebastian Redl, 9 years ago

Resolution: duplicate
Status: newclosed

Reported again as 8879, I'm marking this the dupe.

Note: See TracTickets for help on using tickets.