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

Use C++20 as compile standard #3326

Merged
merged 2 commits into from
Feb 6, 2025
Merged

Conversation

BsAtHome
Copy link
Contributor

@BsAtHome BsAtHome commented Feb 6, 2025

This PR changes the required C++ standard to C++20, as discussed in #3296. The consequence is that Bullseye/Debian 11 is dropped as supported distribution and removed from CI.

Also fixed in this PR:

  • Drop useless compiler-flag test in configure. It is never added to CFLAGS/CXXFLAGS anyway due to a spelling error (flag vs. commonflag). Regardless, the tested compiler-flag is unnecessary because the code has already been fixed (and the test always failed on clang). If compiler-flags are required you should add CFLAGS= or CXXFLAGS= to the configure command-line.
  • Remove a contraction in an explanatory text (Don't -> Do not) because vim has trouble syntax highlighting beyond it.
  • Always add compiler-flag -Wextra. We are currently completely warning free. Lets keep it that way.
  • Add a configure option --enable-werror to set the -Werror compiler-flag. In the near future this should be added to CI's rip-and-test and rip-and-test-clang tests to stay warning free.

Remove non-functional compiler-flag test.
Remove a contraction in an explanatory text so vim will highlight correctly.
Always add -Wextra compiler flag. We are now completely warning free.
Add configure option --enable-werror to force any warnings to become errors.
@andypugh andypugh merged commit cf4976f into LinuxCNC:master Feb 6, 2025
8 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.

2 participants