Opened 9 years ago

Last modified 9 years ago

#9893 new Patches

patch for Clang -Wtautological-constant-out-of-range-compare in property_tree/detail/json_parser_write.hpp

Reported by: mstahl@… Owned by: Sebastian Redl
Milestone: To Be Determined Component: property_tree
Version: Boost Release Branch Severity: Problem
Keywords: Cc: tml@…

Description

upstreaming patch from LibreOffice project, to fix compiler warnings

Attachments (3)

0002-property_tree-fix-Clang-Wtautological-constant-out-o.patch (1.4 KB ) - added by mstahl@… 9 years ago.
boost.dref-as-inttype.warnings.patch.1 (2.7 KB ) - added by anonymous 9 years ago.
0002-property_tree-fix-GCC-4.7.3-Wtype-limits-warning.patch (3.2 KB ) - added by mstahl@… 9 years ago.
patch that applies to git master

Download all attachments as: .zip

Change History (5)

by anonymous, 9 years ago

comment:1 by anonymous, 9 years ago

The patch "boost.dref-as-inttype.warnings.patch.1" should replace the patch "0002-property_tree-fix-Clang-Wtautological-constant-out-o.patch"

by mstahl@…, 9 years ago

patch that applies to git master

comment:2 by mstahl@…, 9 years ago

so Adam found that GCC 4.7.3 with optimization enabled is too smart to be fooled by the cast in the first patch and still issues a warning about the comparison with 0xFF - the new patch should fix that.

Note: See TracTickets for help on using tickets.