Opened 9 years ago

Closed 9 years ago

#8859 closed Bugs (fixed)

[PATCH] Uses of BOOST_STATIC_WARNING warn with recent GCC

Reported by: pmachata@… Owned by: Robert Ramey
Milestone: To Be Determined Component: serialization
Version: Boost 1.54.0 Severity: Problem
Keywords: Cc:

Description

This is related to #7242 (GCC 4.8 warns unused local typedef). The cause and solution are the same as there. Similar problem is also #8847, where I simply use BOOST_STATIC_ASSERT_UNUSED_ATTRIBUTE from StaticAssert library. That's what I implemented here as well.

(Note: while BOOST_STATIC_WARNING should produce a warning, it shouldn't produce it unconditionally, which is what happens here. As a matter of fact, I don't get any warning at all as of now. I'm addressing that separately at ticket #5637.)

Attachments (1)

boost-1.54.0-static_warning-unused_typedef.patch (972 bytes ) - added by pmachata@… 9 years ago.
A fix.

Download all attachments as: .zip

Change History (3)

by pmachata@…, 9 years ago

A fix.

comment:1 by anonymous, 9 years ago

This one hits me as well, I'd love to see the patch applied.

John Maddock

comment:2 by Robert Ramey, 9 years ago

Resolution: fixed
Status: newclosed

well, you're obviously a lot more up to date on this than I am (A second endorsement is pretty convincing also) so I'm just going to take your word for it and apply this patch. Thanks for looking into this.

Robert Ramey

Note: See TracTickets for help on using tickets.