usless_cast warnings with gcc 9.3 and 10.1 (C++17) #2114
Labels
kind: bug
release item: 🔨 further change
solution: proposed fix
a fix for the issue has been proposed and waits for confirmation
Milestone
What is the issue you have?
gcc (g++) gives 2 usless_cast warnings when including json.hpp
Please describe the steps to reproduce the issue. Can you provide a small but working code example?
g++ -Wuseless-cast -std=c++17 main.cc
What is the expected behavior?
No warnings.
And what is the actual behavior instead?
2 compiler warnings:
Which compiler and operating system are you using? Is it a supported compiler?
supported: g++ 9.3.0 (Ubuntu 9.3.0-11ubuntu0~18.04.1)
not supported but might be working: g++ 10.1.0 (arch linux)
Did you use a released version of the library or the version from the
develop
branch?For g++ 9.3.0, only latest release v3.7.3 was tested
For g++ 10.1.0 both 3.7.3 and develop branch can reproduce it
If you experience a compilation error: can you compile and run the unit tests?
Not a compilation error, but a warning
The text was updated successfully, but these errors were encountered: