Skip to content
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

kpatch-build: set C language standard to gnu11 #1417

Merged
merged 1 commit into from
Oct 10, 2024

Conversation

joe-lawrence
Copy link
Contributor

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: #1416 ("C99 code vs. gcc defaults?")

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 <[email protected]>
@joe-lawrence
Copy link
Contributor Author

v2: filter out the -std option for C++ PLUGIN_CFLAGS to avoid:

cc1plus: error: command line option ‘-std=gnu11’ is valid for C/ObjC but not for C++ [-Werror]

@joe-lawrence joe-lawrence merged commit 3dd3e58 into dynup:master Oct 10, 2024
0 of 3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

C99 code vs. gcc defaults?
2 participants