Make rapidfuzz-cpp warning-free #67
Replies: 7 comments 24 replies
|
Yes I would love to have the project warning free. It would be good to:
|
|
I'm using Jason Turner's C++ best practices (https://github.com/cpp-best-practices/project_options) to enable as many warning flags as possible. This also spares us the trouble to hand-crank cross-compiler warning flags. I'm fixing warnings in this order:
What do you think? |
|
It seems we have to use unsigned integers for STL container indexing after all. Both clang and gcc warn about the potential sign change even though in most cases it is simply impossible. |
|
Am I correct to assume that when handling iterators provided from users of the library, |
|
Now that this builds on all compilers, I merged the changes into main. Thanks for the work you put into this 👍 |
|
I added the g++ CI to reflect our changes in cmake.yml. However, GCC spit out several conversion warnings as errors during compilation. Apparently, GitHub Actions uses GNU 9.4.0, which does warn about the conversion from https://github.com/yaoyuan0553/rapidfuzz-cpp/runs/6159911017?check_suite_focus=true I tested with GCC 10 and GCC 11, they do not warn about this conversion, neither does Clang. What's your strategy on the support of GCC version? Should we care about it? |
|
GCC doesn't support fuzzer as a sanitizer. Compiling with |
Uh oh!
There was an error while loading. Please reload this page.
Hi,
I recently integrated rapidfuzz-cpp with one of the projects I am working on. We enabled many compiler warning flags. When compiled with rapidfuzz-cpp, I could see many warnings originated from the internals of rapidfuzz-cpp. Do you have any plans to make the project warning-free with some commonly used compiler warning flags enabled? If so, I'd love to help.
All reactions