summarylogtreecommitdiffstats
path: root/vtpm-gcc12-fixes.patch
diff options
context:
space:
mode:
authorSam Mulvey2022-05-16 11:59:36 -0700
committerSam Mulvey2022-05-16 11:59:36 -0700
commitf7971a3dbdd806bfe71366cf6d91a0c0e1ff0c98 (patch)
tree30943b7c3cfeb3648eddccdbbec1238f4ded7593 /vtpm-gcc12-fixes.patch
parent8c88ec2784c97e91dd385acdc0aefd5744fd2da4 (diff)
downloadaur-f7971a3dbdd806bfe71366cf6d91a0c0e1ff0c98.tar.gz
4.16.1-1, GCC12 fixes
Diffstat (limited to 'vtpm-gcc12-fixes.patch')
-rw-r--r--vtpm-gcc12-fixes.patch14
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"