boostorg / core

Boost Core Utilities
132 stars 87 forks source link

boost/core/lightweight_test.hpp(118) : warning C4100: 'v' : unreferenced formal parameter #36

Closed jeking3 closed 6 years ago

jeking3 commented 6 years ago

See matrix build http://www.boost.org/development/tests/develop/output/teeks99-09-c-win2012R2-64on64-uuid-msvc-10-0-warnings.html#test_uuid

This warning appears many times:

D:\teeks99-09\run\boost_root\boost/core/lightweight_test.hpp(118) : warning C4100: 'v' : unreferenced formal parameter

Seems to be happening on older msvc compilers, before 12.0.

pdimov commented 6 years ago
inline const void* test_output_impl(std::nullptr_t v) { return v; }

Gotta love msvc-10.0.

pdimov commented 6 years ago

Should be fixed in https://github.com/boostorg/core/commit/2a3387451fedc1222e9f43e24d300a155295f20d.

jeking3 commented 6 years ago

Verified.