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

Remove extra semicolons to make old compilers happy #102

Merged
merged 1 commit into from
Oct 20, 2024

Conversation

Gluttton
Copy link
Contributor

See the commit message for details.

@Gluttton Gluttton changed the title remove extra semicolons to make old compilers happy Remove extra semicolons to make old compilers happy Oct 19, 2024
Extra (redundant) semicolons are valid in modern C++ (starting from
C++11). New versions of the compilers warn of this issue only if the
`Wextra-semi` option is explicitly enabled. But old compilers perform
this checking implicitly in the scope of the `Wpedantic` option.

So, the warning is not reported on modern hosts (e.g., Ubuntu 24.04 with
GCC v13.2 and Clang v18.1) but is reported on old hosts (e.g., Debian 11
with GCC v10.2 and Clang v11.0).

Although the extra semicolons may be useful in some cases, in this
particular case, they seem really redundant, so it is proposed to remove
them.

Test: build the project with GCC v10.2.
Signed-off-by: Gluttton <gluttton@ukr.net>
@rjonaitis rjonaitis merged commit 61a557f into myriadrf:develop Oct 20, 2024
14 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