Skip to content

tools: Fix clang tidy errors.#3531

Merged
JuergenReppSIT merged 3 commits intotpm2-software:masterfrom
JuergenReppSIT:fix-clang-tidy2
Dec 3, 2025
Merged

tools: Fix clang tidy errors.#3531
JuergenReppSIT merged 3 commits intotpm2-software:masterfrom
JuergenReppSIT:fix-clang-tidy2

Conversation

@JuergenReppSIT
Copy link
Member

  • tools: Fix wrong type usage of enums.
  • lib/tpm2_kdfa.c: Fix pragma statement.
  • configure.ac Fix compilation with CC=clang

enums used as bitmask are now declared as <enum_type>_enum
the bitmaks is now declared with typedef unsigned int <enum_type>

Signed-off-by: Juergen Repp <juergen_repp@web.de>
The pragma statement to deactivate optimization for gcc produced
an error when clang is used with -Werror.

Signed-off-by: Juergen Repp <juergen_repp@web.de>
compilation was not possible with -Werror if clang is used.
Now warnings from unknown -W flags are supressed.

Signed-off-by: Juergen Repp <juergen_repp@web.de>
@JuergenReppSIT JuergenReppSIT merged commit 95fdaa6 into tpm2-software:master Dec 3, 2025
23 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