-
Notifications
You must be signed in to change notification settings - Fork 2.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Static analysis issues #187
Comments
Thanks for reporting this. Which version did you use? The line numbers don't match with 7859f81. |
The first issue is a false positive because @Naios Is it possible to suppress false positives in Coverity? |
The second is a false positive too, because |
The third case ("Operands don't affect result") is not true in general as can be trivially checked: // prints 0
fmt::print("{}", IntChecker<true>::fits_in_int(std::numeric_limits<long long>::min())); Here |
@vitaut You can suppress single false positives for sure. I'm sorry that it takes so long to update this issue to a newer head but we didn't manage to update the coverity scan filter regex yet. |
No worries, I've submitted the latest version of C++ Format to Coverity myself (https://scan.coverity.com/projects/5671) and I'll try to fix or suppress the warnings as appropriate. One of the warnings in |
Seems like this is solved |
There are a few more issues reported by Coverity (mostly in tests and Google Mock), but nothing critical and I'll address them separately (#192). Thanks again for reporting! |
7859f81
Coverity reported some static analysis issues in our TrinityCore check.
format.cc
format.h
The text was updated successfully, but these errors were encountered: