Skip to content

Fixes 13#163

Merged
aarond10 merged 4 commits intoaarond10:masterfrom
baranyaib90:master
Oct 24, 2023
Merged

Fixes 13#163
aarond10 merged 4 commits intoaarond10:masterfrom
baranyaib90:master

Conversation

@baranyaib90
Copy link
Copy Markdown
Contributor

Hi, briefly: some code modernization and a plan B for #161
Br, Balázs

options.c: refactor around opt->logfile
- Run github actions on Ubuntu 22.04
- Build with gcc-12 and clang-15
- clang-tidy exclude list updated from scratch
- Using "-gdwarf-4" because of:
  llvm/llvm-project#56550
- Added (void) to ignore return values
- Added void if no function parameter is used
- Default version string updated
- valgrind suppression file added
- Timeouts raised in case of valgrind test:
  more important to run stable
Copy link
Copy Markdown
Owner

@aarond10 aarond10 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I really don't like the (void) stuff but if the linter likes it, sure. :)

@aarond10 aarond10 merged commit 977341a into aarond10:master Oct 24, 2023
@aarond10
Copy link
Copy Markdown
Owner

You're a champ! Thank you.

@baranyaib90
Copy link
Copy Markdown
Contributor Author

You are welcome.

About the (void) stuff (Reference: https://clang.llvm.org/extra/clang-tidy/checks/cert/err33-c.html):

  1. Ignoring it totally is a no go.
  2. Having (void) right there shows - in a nasty syntax way - that return value is ignored on purpose. (As I recall, clang-tidy recommended the cast to void.)
  3. Plan B would be to have //NOLINT(cert-err33-c) at the end of the line :S

@aarond10
Copy link
Copy Markdown
Owner

aarond10 commented Oct 27, 2023 via email

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