Opened 10 years ago

Closed 10 years ago

#8368 closed Patches (fixed)

GCC -Wundef warning about BOOST_MULTI_ARRAY_NO_GENERATORS in multi_array

Reported by: mstahl@… Owned by: Ronald Garcia
Milestone: To Be Determined Component: multi_array
Version: Boost Development Trunk Severity: Problem
Keywords: Cc:

Description

the LibreOffice project has recently added -Wundef to its flags and GCC 4.7 produces a warning about "if !BOOST_MULTI_ARRAY_NO_GENERATORS" in boost/multi_array/base.hpp.

apaprently trunk still contains that line.

i'll attach a fix (which is of course contributed under boost project's standard license).

Attachments (1)

boost.wundef.patch.1 (507 bytes ) - added by mstahl@… 10 years ago.
fix -Wundef in multi_array/base.hpp

Download all attachments as: .zip

Change History (2)

by mstahl@…, 10 years ago

Attachment: boost.wundef.patch.1 added

fix -Wundef in multi_array/base.hpp

comment:1 by Ronald Garcia, 10 years ago

Resolution: fixed
Status: newclosed

(In [83761]) fixes #8368

Changed a macro to use ifndef rather than if to avoid warnings.

Note: See TracTickets for help on using tickets.