mbox series

[0/2] Silence compiler warnings in tpm code

Message ID 20230918122659.92014-1-thuth@redhat.com
Headers show
Series Silence compiler warnings in tpm code | expand

Message

Thomas Huth Sept. 18, 2023, 12:26 p.m. UTC
GCC v13 emits some new compiler warnings when compiling SLOF.
Here are two patches to get them silenced again.

Thomas Huth (2):
  lib/libtpm: Silence compiler warnings about bad zero-length array
    access
  lib/libtpm: Silence compiler warning about unaligned pointer value

 lib/libtpm/tcgbios_int.h | 2 +-
 lib/libtpm/tpm_drivers.c | 3 ++-
 2 files changed, 3 insertions(+), 2 deletions(-)

Comments

Thomas Huth Sept. 18, 2023, 12:30 p.m. UTC | #1
On 18/09/2023 14.26, Thomas Huth wrote:
> GCC v13 emits some new compiler warnings when compiling SLOF.
> Here are two patches to get them silenced again.
> 
> Thomas Huth (2):
>    lib/libtpm: Silence compiler warnings about bad zero-length array
>      access
>    lib/libtpm: Silence compiler warning about unaligned pointer value
> 
>   lib/libtpm/tcgbios_int.h | 2 +-
>   lib/libtpm/tpm_drivers.c | 3 ++-
>   2 files changed, 3 insertions(+), 2 deletions(-)

Ooops, please ignore. I did not notice that I was in fact operating on an 
old branch when I encountered the warnings. These should be fixed already, 
sorry for the noise!

  Thomas