Opened 8 years ago

Closed 5 years ago

#10324 closed Bugs (fixed)

Fix for const-cast warning

Reported by: harris.pc@… Owned by: James E. King, III
Milestone: Boost 1.66.0 Component: format
Version: Boost 1.56.0 Severity: Problem
Keywords: Cc:

Description

I see this warning in GCC 4.7.2, using Boost 1.56.0

boost/format/feed_args.hpp|121 col 9| warning: cast from type ‘const void*’ to type ‘boost::remove_reference<long unsigned int>::type* {aka long unsigned int*}’ casts away qualifiers [-Wcast-qual]

boost/format/feed_args.hpp|126 col 9| warning: cast from type ‘const void*’ to type ‘long unsigned int*’ casts away qualifiers [-Wcast-qual]

I've made a simple change to the code that avoids these warnings - please see attached patch.

Attachments (1)

format_patch.diff (733 bytes ) - added by harris.pc@… 8 years ago.
patch

Download all attachments as: .zip

Change History (4)

by harris.pc@…, 8 years ago

Attachment: format_patch.diff added

patch

comment:1 by James E. King, III, 5 years ago

Owner: changed from Samuel Krempp to James E. King, III
Status: newassigned

comment:2 by James E. King, III, 5 years ago

Milestone: To Be DeterminedBoost 1.66.0

https://github.com/boostorg/format/pull/25 merged into develop will resolve once develop merges into master

comment:3 by James E. King, III, 5 years ago

Resolution: fixed
Status: assignedclosed
Note: See TracTickets for help on using tickets.