-
Notifications
You must be signed in to change notification settings - Fork 304
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
C99 code vs. gcc defaults? #1416
Comments
@jpoimboe : any preferences given the maturity of the code base? |
I think we can add |
joe-lawrence
added a commit
to joe-lawrence/kpatch
that referenced
this issue
Oct 10, 2024
Add -std=gnu11 to CFLAGS for kpatch-build tooling. This aligns with the kernel building for which we try to follow and avoids confusion when older tooling may default to earlier versions. Closes: dynup#1416 ("C99 code vs. gcc defaults?") Signed-off-by: Joe Lawrence <joe.lawrence@redhat.com>
joe-lawrence
added a commit
to joe-lawrence/kpatch
that referenced
this issue
Oct 10, 2024
Add -std=gnu11 to CFLAGS for kpatch-build tooling. This aligns with the kernel build and avoids confusion when older tooling may default to earlier versions. Closes: dynup#1416 ("C99 code vs. gcc defaults?") Signed-off-by: Joe Lawrence <joe.lawrence@redhat.com>
zhjwong
pushed a commit
to zhjwong/kpatch
that referenced
this issue
Nov 5, 2024
Add -std=gnu11 to CFLAGS for kpatch-build tooling. This aligns with the kernel build and avoids confusion when older tooling may default to earlier versions. Closes: dynup#1416 ("C99 code vs. gcc defaults?") Signed-off-by: Joe Lawrence <joe.lawrence@redhat.com>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Internal CI testing on RHEL-7.9 popped up this build error for #1415:
Up to now, we haven't merged any C99-isms like this into the code base, but it seems that default gcc options in distros like Fedora and the Ubuntu? github Travis CI must be assuming C99, so I never saw this error until the internal CI ran on RHEL-7.
A few things we could do:
-std=gnu99
to kpatch-build Makefile-std=gnu89
to kpatch-build/Makefile-std=gnu89
test to .travis.yml to catch them earlier in the PRThe text was updated successfully, but these errors were encountered: