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

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