-
Notifications
You must be signed in to change notification settings - Fork 10
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
Check your code with werror and wpedantic #77
Comments
Hi there and thank you for the bug report. I am a bit confused as to why I am not catching these warnings, because I do compile the code with Are you using a specific compiler version, and/or a specific platform? Or perhaps some additional compilation options. Are you able to create a minimal example I can reproduce, outside of your CI scripts? Having the full compilation command would also help. At any rate, the warning about the extra semicolon is genuine, and I will fix it. The other warning is noise; I may be able to find an alternative implementation that does not trigger it, but that first requires me being able to reproduce it. |
I'm catching these errors during linking against |
Still nothing 🤷 |
Correction, I do get
I had already fixed it on my branch, hence why it wasn't showing up... Weirdly, it shows up only when compiling with For the rest of the warnings, I looked at your CI scripts, you specify more warnings on the command line:
Seems like they are coming from |
yeah, sure, no problem. It is not blocker for me, just wanted to notify you about possible issue :). In this case I would suggest you to add (or at least, to mention) target_compile_options(snitch PRIVATE "-w") as part of the "installation guide" |
Hey! Thank you for this amazing testing framework. Currently I’m trying to add it to my library, but CI gets a bunch of error on your library due to werror and wpedantic flags
for example
Error: /home/runner/work/ReactivePlusPlus/ReactivePlusPlus/build/_deps/snitch-src/src/snitch.cpp:76:55: error: format string is not a string literal [-Werror,-Wformat-nonliteral]
60
const int return_code = std::snprintf(nullptr, 0, get_format_code(), value);
Or some stupid one
Error: /home/runner/work/ReactivePlusPlus/ReactivePlusPlus/build/_deps/snitch-src/include/snitch/snitch.hpp:1151:2: error: extra ‘;’ [-Werror=pedantic]
66
1151 | }; // namespace event
Full run can be found there: https://github.com/victimsnino/ReactivePlusPlus/actions/runs/4536738324
I could find workaround, but anyway it is better for you to have zero warnings even on most aggressive level :)
The text was updated successfully, but these errors were encountered: