#3618 closed Patches (fixed)
MSVC Warning suppression fix
| Reported by: | John Maddock | Owned by: | Douglas Gregor |
|---|---|---|---|
| Milestone: | Boost 1.42.0 | Component: | function |
| Version: | Boost Development Trunk | Severity: | Problem |
| Keywords: | Cc: |
Description
The attached patch fixes two categories of warnings from MSVC:
- First it complains that certain variables are assigned values that are not used when in fact it is used to call the type's destructor via f->~Function(). I believe the warning occurs because the type Function is a built in type for which it's destructor is a no-op.
- Secondly, use of Boost.Test requires /EHa - added as a requirement to the Jamfile.
Let me know if you want me to commit.
Regards, John.
Attachments (1)
Change History (5)
comment:1 by , 13 years ago
by , 13 years ago
| Attachment: | warnings.diff added |
|---|
comment:3 by , 12 years ago
| Resolution: | → fixed |
|---|---|
| Status: | new → closed |
comment:4 by , 12 years ago
(In [70361]) Function: Merge from trunk.
- Remove extra definition of operator(), since it's inline anyway. Fixes #4765.
- Make sure that the cv flags are copied when we copy a reference to a function object. Fixes #4325
- Fully qualified function calls to avoid ambiguity with new additions to standard. Thanks to Conrad Poelman. Fixes #4073
- Remove iterator workaround for newer versions of Visual Age C++. Thanks to 'ccambly'. Fixes #3912
- Fix unused variable warning for Visual C++. Fixes #3618
- Testing flag for Visual C++.
- Removed all but one old-style cast, prevents GCC warnings, but breaks GCC 2.95.3. Fixes #3410
- Fixed tab and newline issues from inspection report.
Note:
See TracTickets
for help on using tickets.

---> suppress warning