Opened 9 years ago

Last modified 9 years ago

#8856 new Bugs

[date_time] GCC 4.8+ warns unused local typedef...

Reported by: Chris Stylianou <chris5287@…> Owned by: az_sw_dude
Milestone: To Be Determined Component: date_time
Version: Boost 1.54.0 Severity: Problem
Keywords: Cc:

Description

GCC 4.8+ warns unused local typedef...

posix_time_io.hpp:50
typedef ‘std_ptime_facet’ locally defined but not used [-Wunused-local-typedefs]
posix_time_io.hpp:117
typedef ‘std_time_facet’ locally defined but not used [-Wunused-local-typedefs]
posix_time_io.hpp:183
typedef ‘std_ptime_facet’ locally defined but not used [-Wunused-local-typedefs]
local_time_io.hpp:39
typedef ‘std_time_facet’ locally defined but not used [-Wunused-local-typedefs]
local_time_io.hpp:126
typedef ‘std_time_facet’ locally defined but not used [-Wunused-local-typedefs]
date_parsing.hpp:116
typedef ‘year_type’ locally defined but not used [-Wunused-local-typedefs]
date_parsing.hpp:163
typedef ‘year_type’ locally defined but not used [-Wunused-local-typedefs]
string_convert.hpp:24
typedef ‘input_type’ locally defined but not used [-Wunused-local-typedefs]
strings_from_facet.hpp:38
typedef ‘ostream_type’ locally defined but not used [-Wunused-local-typedefs]
strings_from_facet.hpp:89
typedef ‘ostream_type’ locally defined but not used [-Wunused-local-typedefs]

Proposed fix attached.

Attachments (2)

date_time.patch (4.7 KB ) - added by Chris Stylianou <chris5287@…> 9 years ago.
boost-1.54.0-date_time-unused_typedef-2.patch (617 bytes ) - added by Petr Machata <pmachata@…> 9 years ago.
This one also appears to be necessary.

Download all attachments as: .zip

Change History (3)

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

Attachment: date_time.patch added

by Petr Machata <pmachata@…>, 9 years ago

This one also appears to be necessary.

Note: See TracTickets for help on using tickets.