-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Compiler macro warnings with -pedantic #1538
Comments
I can fix this specific case, but I have no way to guarantee that it won't pop up in the future because the flag to detect it is gcc-specific. I will leave this issue open, because we may be able to compile zstd with pedantic, but it will require quite some work. We may be able to compile with pedantic, but we would have to disable certain checks. The flags to disable those checks, like We're always happy to add more warning flags, but it is a process that takes some time, which is a scarce resource. If anyone is willing to spend some time enabling pedantic, I'm more than happy to code review! It probably makes sense to add in flags that |
Would that kind of thinking be an acceptable solution?
or maybe we should create 2 separate macros (one for exactly 2 and one for more) ? |
That may work, but zstd doesn't currently compile under Fixing this warning doesn't particularly matter to us, since enabling it won't help catch potential bugs. We would fix this if we fix all of the other places that There is a bit of work to be done to enable |
Ok, got it. I'm new to the project (and open-source) so I figured it's a good first issue. I will try to make it able to compile with -pedantic and then fix something of higher priority. |
Its been a while since this thread saw activity. @baziotis, are you still interested in trying to make zstd compile with -pedantic? |
Oh, I had forgotten that. For some reason I had found difficulties last year and did not finish it. |
The changes required seem to complicated for the time being. Closing this issue. |
The flag to detect this warning is not gcc specific. Clang, and therefore Emscripten, also raises this warning when using Could a fix be to change the macro to
with the current For the time being I shall have to turn off this warning. |
When compiling with
-Wall -pedantic
etc. There are quite a few. Would it be possible to fix?
The text was updated successfully, but these errors were encountered: