mirror of
https://github.com/fmtlib/fmt.git
synced 2024-12-26 09:28:21 +00:00
1b8f499ee1
Problem: - gcc-10 is generating the following warning at all standards: test/format-test.cc: In member function 'virtual void UtilTest_BitCast_Test::TestBody()': test/format-test.cc:108:42: error: useless cast to type 'uint64_t' {aka 'long long unsigned int'} [-Werror=useless-cast] 108 | s = fmt::detail::bit_cast<uint32_pair>(uint64_t(~0ull)); | ^~~~~~~~~~~~~~~ - gcc-8 is generating the following warning at all standards: test/format-test.cc: In member function 'virtual void UtilTest_BitCast_Test::TestBody()': test/format-test.cc:108:56: error: useless cast to type 'uint64_t' {aka 'long long unsigned int'} [-Werror=useless-cast] s = fmt::detail::bit_cast<uint32_pair>(uint64_t(~0ull)); ^ Solution: - Cast 0 to a 64 unsigned bit int and then invert. Co-authored-by: Jonathan Gopel <jgopel@quantlab.com> |
||
---|---|---|
.. | ||
add-subdirectory-test | ||
compile-error-test | ||
cuda-test | ||
find-package-test | ||
fuzzing | ||
gmock | ||
gtest | ||
assert-test.cc | ||
chrono-test.cc | ||
CMakeLists.txt | ||
color-test.cc | ||
compile-test.cc | ||
core-test.cc | ||
format | ||
format-impl-test.cc | ||
format-test.cc | ||
gmock-gtest-all.cc | ||
gtest-extra-test.cc | ||
gtest-extra.cc | ||
gtest-extra.h | ||
header-only-test2.cc | ||
header-only-test.cc | ||
locale-test.cc | ||
mock-allocator.h | ||
os-test.cc | ||
ostream-test.cc | ||
posix-mock-test.cc | ||
posix-mock.h | ||
printf-test.cc | ||
ranges-test.cc | ||
scan-test.cc | ||
scan.h | ||
std-format-test.cc | ||
test-assert.h | ||
test-main.cc | ||
util.cc | ||
util.h |