Opened 10 years ago

Closed 10 years ago

#8255 closed Bugs (fixed)

Wave build warnings are probably errors on 64-bit

Reported by: chris0@… Owned by: Hartmut Kaiser
Milestone: To Be Determined Component: wave
Version: Boost 1.53.0 Severity: Problem
Keywords: Cc:

Description

Building Boost (1.53.0) Wave for i386 on OSX 10.8.2 with GCC 4.2.1 produces several very long warning messages (~26KB). Having looked into this, these warnings appear to indicate programming errors if building for 64-bit (LP64) targets.

I built wave with:

cd boost_1_53_0/tools/wave/build
b2 variant=debug

The attached patch fixes these warning & should correct the LP64 errors.

However, a better fix may be to change the 'line' & 'column' data members & associated accessor functions of struct file_position in boost/wave/util/file_position.hpp from size_t (64-bit on LP64) to uint32_t (or equivalent). (I think 32-bits is plenty big enough.) But that decision I leave to the library owner.

Attachments (1)

wave.patch (2.0 KB ) - added by chris0@… 10 years ago.
Fix wave build warnings

Download all attachments as: .zip

Change History (2)

by chris0@…, 10 years ago

Attachment: wave.patch added

Fix wave build warnings

comment:1 by Hartmut Kaiser, 10 years ago

Resolution: fixed
Status: newclosed

(In [83345]) Fix #8255: Wave build warnings are probably errors on 64-bit

Note: See TracTickets for help on using tickets.