Skip to content

Fix -Wextra in RT non-componentized code#3344

Merged
andypugh merged 1 commit intoLinuxCNC:masterfrom
BsAtHome:fix_rt-wextra-noncomp
Mar 2, 2025
Merged

Fix -Wextra in RT non-componentized code#3344
andypugh merged 1 commit intoLinuxCNC:masterfrom
BsAtHome:fix_rt-wextra-noncomp

Conversation

@BsAtHome
Copy link
Copy Markdown
Contributor

This PR fixes the non-componentized real-time part in the -Wextra warnings cleanup.

It turns out that CFLAGS are not propagated to the RT compile causing the code to be compiled without -Wextra. A whole list of issues turn up when propagating the -Wextra option. The fixed warnings include:

  • unused parameters,
  • signed/unsigned issues,
  • missing field initialization.

All warnings pertaining to above list are fixed in this PR when compiling uspace. The fixes in the components will be put forward in a separate PR.

(Note, this PR is split off from #3333, now marked WIP, to form two new PRs; this one and one upcoming)

@andypugh andypugh merged commit d69b118 into LinuxCNC:master Mar 2, 2025
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.

2 participants