Skip to content

Check that -Wno-gnu compiler flag is supported before using#44

Merged
msteinert merged 1 commit into
mainfrom
43-meson-build-passes-unsupported-flags-breaking-linkage-cc1-error-unrecognized-command-line-option--wno-gnu
Sep 5, 2025
Merged

Check that -Wno-gnu compiler flag is supported before using#44
msteinert merged 1 commit into
mainfrom
43-meson-build-passes-unsupported-flags-breaking-linkage-cc1-error-unrecognized-command-line-option--wno-gnu

Conversation

@rdmark

@rdmark rdmark commented Sep 4, 2025

Copy link
Copy Markdown
Collaborator

Very old compilers, such as gcc 4.2.1 on OSX Snow Leopard / PowerPC, will error out when encountering this unsupported flag

Additionally, use this flag only when building bsting with unit test support, since the non-standard code warnings that we silence with this flag lies in libcheck that we link with

@github-actions

github-actions Bot commented Sep 4, 2025

Copy link
Copy Markdown

File Coverage Lines Branches
All files 68% 73% 63%
bstring/bstraux.c 55% 64% 46%
bstring/bstrlib.c 73% 76% 69%

Minimum allowed coverage is 50%

Generated by 🐒 cobertura-action against 7c9a194

Very old compilers, such as gcc 4.2.1 on OSX Snow Leopard / PowerPC, will error out when encountering this unsupported flag

Additionally, use this flag only when building bsting with unit test support, since the non-standard code warnings that we silence with this flag lies in libcheck that we link with
@rdmark
rdmark force-pushed the 43-meson-build-passes-unsupported-flags-breaking-linkage-cc1-error-unrecognized-command-line-option--wno-gnu branch from ef1e631 to 7c9a194 Compare September 4, 2025 20:06
@sonarqubecloud

sonarqubecloud Bot commented Sep 4, 2025

Copy link
Copy Markdown

@msteinert
msteinert merged commit c431d43 into main Sep 5, 2025
16 checks passed
@rdmark
rdmark deleted the 43-meson-build-passes-unsupported-flags-breaking-linkage-cc1-error-unrecognized-command-line-option--wno-gnu branch September 5, 2025 20:57
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.

meson build passes unsupported flags, breaking linkage: cc1: error: unrecognized command line option "-Wno-gnu"

2 participants