#4377 closed Patches (fixed)
Suppress 'unused variable' warnings in functional.hpp
Reported by: | Owned by: | Gunter | |
---|---|---|---|
Milestone: | Boost 1.44.0 | Component: | uBLAS |
Version: | Boost 1.44.0 | Severity: | Cosmetic |
Keywords: | Cc: |
Description
In functional.hpp there are several functions with unused arguments (mostly due to specialized cases).
In order to avoid the annoying 'unused variable' compiler warnings, I suggest to comment these unused arguments.
In the attachment there is a patch for the functional.hpp file (svn rev. 63303).
Attachments (2)
Change History (5)
by , 12 years ago
Attachment: | functional-suppress_unused_warning.patch added |
---|
comment:1 by , 12 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
comment:2 by , 12 years ago
I missed to comment a parameter.
In file funcitonal.hpp (line 1868) the function:
size_type restrict1 (size_type i, size_type j, size_type size1, size_type size2) { return (std::max)(j, (std::min) (size1, i)); }
has a parameter size which is never used.
I attach another patch, to be applied after the one I've already uploaded, where that parameter is simply commented.
by , 12 years ago
Attachment: | functional-suppress_unused_warning-2.patch added |
---|
Patch to comment parameter size2 at line 1868 of functional.hpp.
comment:3 by , 12 years ago
I've applied the second patch to the trunk. Once the tests have cycled, I'll apply it to the release branch. This close to release, I don't think it will make it into 1.44; look for it in 1.45
Commented unused function arguments