Opened 9 years ago
Closed 9 years ago
#8859 closed Bugs (fixed)
[PATCH] Uses of BOOST_STATIC_WARNING warn with recent GCC
Reported by: | 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)
Change History (3)
by , 9 years ago
Attachment: | boost-1.54.0-static_warning-unused_typedef.patch added |
---|
comment:1 by , 9 years ago
This one hits me as well, I'd love to see the patch applied.
John Maddock
comment:2 by , 9 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
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
A fix.