-
Notifications
You must be signed in to change notification settings - Fork 191
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
In scheduler/client.c 'for (char *start = ...' is only allowed in C99 mode #1000
Comments
avoid_C99_mode_for_loop_initial_declarations.txt I use this patch (uploaded here with |
No, prior to CUPS 2.5 we don't require C99 support. We should update this code to not depend on loop variable declarations... |
@jsmeix Thank you for the patch! I saw you double-reference the pointer - IIUC it is not correct, can you check if the patch in the attached PR works for you? I've used the existing |
Do not use C99-only construct (fixes #1000)
@zdohnal Yes, my patch is faulty. I replaced my patch with your upstream fix in FYI: |
Since
a7eda84
from #974
there are now two 'for' loop initial declarations
which are only allowed in C99 mode.
When not in C99 mode one gets a compiler
Has C99 mode become mandatory to compile CUPS?
I ask because when I compile CUPS 2.4.10
in a SUSE SLES12 SP5 build environment,
I get the above compiler error.
The text was updated successfully, but these errors were encountered: