Opened 11 years ago
Closed 7 years ago
#5986 closed Bugs (fixed)
clang warning: unused variable check_is_small
Reported by: | Mateusz Loskot | Owned by: | Gennadiy Rozental |
---|---|---|---|
Milestone: | Boost 1.59.0 | Component: | test |
Version: | Boost Development Trunk | Severity: | Problem |
Keywords: | clang | Cc: |
Description
Current clang issues warning in floating_point_comparison.hpp:
warning: unused variable 'check_is_close warning: unused variable 'check_is_small
There seems to be similar report for GCC in #2390
The only way to deal with it in clang is to wrap the Boost.Test headers with
#ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Wunused-variable" #endif #include <boost/test/...> #ifdef __clang__ #pragma clang diagnostic pop #endif
Perhaps it is possible to solve it in the library, so users don't have to deal with it.
Change History (1)
comment:1 by , 7 years ago
Milestone: | To Be Determined → Boost 1.59.0 |
---|---|
Resolution: | → fixed |
Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
These are not used in new release