lib: Fix clang Build
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest1 patch 3 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/1 | lib: Fix clang Build - Remove Duplicate Typedef in TSSgrub-core/ | +0 | 3 replies |
Reviews trailers per patch
The patch has a Reviewed-by or Acked-by.
| Patch | Ross Philipson | Gary Lin | Daniel Kiper |
|---|---|---|---|
| 1/1 | R-b | R-b | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.
Cover letter [PATCH 0/1] lib: Fix clang Build
tss2_structs.h contains a duplicate typedef as follows:
typedef TPMS_SCHEME_HASH_t TPMS_SCHEME_KDF2_t;
This causes a build failure when compiling with clang 14
that can be seen as follows:
export CC=clang
export CXX=clang++
./configure
make
In file included from ./grub-core/commands/tpm2_key_protector/tpm2.h:24:./grub-core/lib/tss2/tss2_structs.h:278:28: error: redefinition of typedef 'TPMS_SCHEME_KDF2_t' is a C11 feature [-Werror,-Wtypedef-redefinition]
typedef TPMS_SCHEME_HASH_t TPMS_SCHEME_KDF2_t;
^
./grub-core/lib/tss2/tss2_structs.h:275:28: note: previous definition is here
typedef TPMS_SCHEME_HASH_t TPMS_SCHEME_KDF2_t;
^1 error generated.
Making the change proposed allows successfully building GRUB with clang 14.
Andrew Hamilton (1):
lib: Fix clang Build - Remove Duplicate Typedef in TSS
grub-core/lib/tss2/tss2_structs.h | 1 - 1 file changed, 1 deletion(-)
Signature · 7 lines
2.39.5 _______________________________________________ Grub-devel mailing list [email protected] https://lists.gnu.org/mailman/listinfo/grub-devel