diff options
Diffstat (limited to 'vtpm-gcc12-fixes.patch')
-rw-r--r-- | vtpm-gcc12-fixes.patch | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/vtpm-gcc12-fixes.patch b/vtpm-gcc12-fixes.patch new file mode 100644 index 000000000000..a86bf007a924 --- /dev/null +++ b/vtpm-gcc12-fixes.patch @@ -0,0 +1,14 @@ +diff -Naur orig.tpm_emulator-0.7.4/crypto/rsa.h tpm_emulator-0.7.4/crypto/rsa.h +--- orig.tpm_emulator-0.7.4/crypto/rsa.h 2022-05-16 09:33:22.000000000 -0700 ++++ tpm_emulator-0.7.4/crypto/rsa.h 2022-05-16 09:34:03.000000000 -0700 +@@ -17,6 +17,10 @@ + #ifndef _RSA_H_ + #define _RSA_H_ + ++#if __GNUC__ >= 12 ++#pragma GCC diagnostic ignored "-Waddress" ++#endif ++ + #include <stddef.h> + #include <stdint.h> + #include "bn.h" |