Opened 15 years ago

Closed 14 years ago

#1523 closed Bugs (fixed)

[iostreams] VC8/VC9 compiler warnings

Reported by: Richard Webb <richard.webb@…> Owned by: Jonathan Turkanis
Milestone: To Be Determined Component: iostreams
Version: Boost Development Trunk Severity: Cosmetic
Keywords: Cc:

Description

iostreams produces a couple of compiler warnings when built in the MS compilers using warning level 4 and/or code analysis:

boost\iostreams\detail\functional.hpp(105) : warning C4512: 'boost::iostreams::detail::member_close_operation<T>' : assignment operator could not be generated

boost\iostreams\traits.hpp(48) : warning C6334: sizeof operator applied to an expression with an operator might yield unexpected results

Noticed when running the regression tests. Some examples of the full warnings can be seen at http://tinyurl.com/3xe4rt

Change History (3)

comment:1 by Jonathan Turkanis, 15 years ago

Status: newassigned

I eliminated all but a few VC 8.0 warnings with warning level 4 in [42290], [42291], and [42293]. I could not reproduce warning C6334 on VC8.0.

comment:2 by Richard Webb <richard.webb@…>, 15 years ago

C6334 only happens when the code analysis option is enabled (only available on some versions of visual studio - not in the express version at least).

comment:3 by Jonathan Turkanis, 14 years ago

Resolution: fixed
Status: assignedclosed

I have fixed a couple of additional unreferenced parameter warnings and a warning about operator, in detail/is_incrementable.hpp (see [45754])

The only remaining warnings I see are 4275, which I don't know how to fix without disabling similar warnings in user code.

I am closing this ticket now; please report any remaining warnings in a new ticket.

Note: See TracTickets for help on using tickets.