Blame SOURCES/0052-Fix-some-volatile-usage-gcc-whines-about.patch

d84fc6
From d3b7dc54cdac474a57b67cf9bcdb15bcb131d06c Mon Sep 17 00:00:00 2001
d84fc6
From: Peter Jones <pjones@redhat.com>
d84fc6
Date: Thu, 23 Jul 2020 16:18:52 -0400
d84fc6
Subject: [PATCH 52/62] Fix some volatile usage gcc whines about.
d84fc6
d84fc6
Signed-off-by: Peter Jones <pjones@redhat.com>
d84fc6
Upstream: pr#212
d84fc6
---
d84fc6
 fallback.c | 2 +-
d84fc6
 shim.c     | 2 +-
d84fc6
 2 files changed, 2 insertions(+), 2 deletions(-)
d84fc6
d84fc6
diff --git a/fallback.c b/fallback.c
d84fc6
index c3f5583c626..5a4bfff0793 100644
d84fc6
--- a/fallback.c
d84fc6
+++ b/fallback.c
d84fc6
@@ -983,7 +983,7 @@ debug_hook(void)
d84fc6
 	UINT8 *data = NULL;
d84fc6
 	UINTN dataSize = 0;
d84fc6
 	EFI_STATUS efi_status;
d84fc6
-	volatile register int x = 0;
d84fc6
+	register volatile int x = 0;
d84fc6
 	extern char _etext, _edata;
d84fc6
 
d84fc6
 	efi_status = get_variable(L"SHIM_DEBUG", &data, &dataSize,
d84fc6
diff --git a/shim.c b/shim.c
d84fc6
index b35b0ad90cc..0e7e784b4c8 100644
d84fc6
--- a/shim.c
d84fc6
+++ b/shim.c
d84fc6
@@ -2559,7 +2559,7 @@ debug_hook(void)
d84fc6
 	UINT8 *data = NULL;
d84fc6
 	UINTN dataSize = 0;
d84fc6
 	EFI_STATUS efi_status;
d84fc6
-	volatile register UINTN x = 0;
d84fc6
+	register volatile UINTN x = 0;
d84fc6
 	extern char _text, _data;
d84fc6
 
d84fc6
 	if (x)
d84fc6
-- 
d84fc6
2.26.2
d84fc6