-
Notifications
You must be signed in to change notification settings - Fork 114
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
Add -Werror=format-security back #357
Add -Werror=format-security back #357
Conversation
Hm. This one fails the linux CI build with
(So, this is not ready to merge.) |
The seeds are now 64 bits ( #include <inttypes.h>
printf("Seed %" PRIu64 ":\n", theSeed); Alternatively, an explicit cast also works on all platforms, and is already used in 3 other places: printf("Seed %llu:\n", (unsigned long long)theSeed); Ah, |
Thank you, I'll incorporate that.
The original motivation was to compile when |
Is using %llu for 64bit not correct/portable? long long is >=64 The Ubuntu 16.04 Actions environment gets deprecated in September, we could upgrade now |
Probably fine (it works on gcc and clang in practice, after all!) but if some other compiler wants to treat |
Turn off very common formatting issues and fix the remainder
1fdb96d
to
9beb18a
Compare
Ok. Explicit casts and ubuntu 18.04 are in. My own local CI passes. I think we're mergeable, thoughts? |
What do we think of using PRIu64? |
My guess is it would seem less intuitive to a future maintainer than the explicit casts. I doubt we care about any precision/sizing/overflow implications of the explicit cast either. |
Hmm, I might prefer it from a type abstraction POV. At one point I was considering a |
Turn off very common formatting issues and fix the remainder