Modify

Opened 8 years ago

Closed 8 years ago

#2779 closed Bugs (fixed)

iostreams/close.hpp doesn't restore warning level

Reported by: Vasili Galka <vvv444@…> Owned by: turkanis
Milestone: To Be Determined Component: iostreams
Version: Boost 1.38.0 Severity: Problem
Keywords: Cc:

Description

"close.hpp" pushes the warning level twice. At line 33 and line 215. However, it is poped only once at line 258. This results in unrestored warning level.

As far as I understand there is no need for the "disable_warnings.hpp" include on line 215 because it's already done at line 33. This line can be safely removed to solve the problem.

Surprisingly, this bug exists ever since this file was created on May 2005.

[All the line numbers are for official 1.38.0 release]

Attachments (0)

Change History (1)

comment:1 Changed 8 years ago by vladimir_prus

  • Resolution set to fixed
  • Status changed from new to closed

(In [53426]) Do no disable warnings twice (while restoring only once).

Fixes #2779. Thanks to Vasili Galka for the bug report.

Add Comment

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain turkanis.
The resolution will be deleted. Next status will be 'reopened'.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.