Blame SOURCES/0056-code-clean-up.patch
|
|
121cca |
From 9555d6cfc33a58a7cf91d137f7209ccf1bee86a8 Mon Sep 17 00:00:00 2001
|
|
|
121cca |
From: Lyonel Vincent <lyonel@ezix.org>
|
|
|
121cca |
Date: Tue, 12 Oct 2021 22:02:22 +0200
|
|
|
121cca |
Subject: [PATCH 56/65] code clean-up
|
|
|
121cca |
|
|
|
121cca |
get rid of warning complaining about `register` storage of CRC
|
|
|
121cca |
---
|
|
|
121cca |
src/core/partitions.cc | 3 +--
|
|
|
121cca |
1 file changed, 1 insertion(+), 2 deletions(-)
|
|
|
121cca |
|
|
|
121cca |
diff --git a/src/core/partitions.cc b/src/core/partitions.cc
|
|
|
121cca |
index 4268903..7b9fd4f 100644
|
|
|
121cca |
--- a/src/core/partitions.cc
|
|
|
121cca |
+++ b/src/core/partitions.cc
|
|
|
121cca |
@@ -520,7 +520,6 @@ hwNode & partition)
|
|
|
121cca |
* - Now pass seed as an arg
|
|
|
121cca |
* - changed unsigned long to uint32_t, added #include<stdint.h>
|
|
|
121cca |
* - changed len to be an unsigned long
|
|
|
121cca |
- * - changed crc32val to be a register
|
|
|
121cca |
* - License remains unchanged! It's still GPL-compatable!
|
|
|
121cca |
*/
|
|
|
121cca |
|
|
|
121cca |
@@ -626,7 +625,7 @@ uint32_t
|
|
|
121cca |
__efi_crc32(const void *buf, unsigned long len, uint32_t seed)
|
|
|
121cca |
{
|
|
|
121cca |
unsigned long i;
|
|
|
121cca |
- register uint32_t crc32val;
|
|
|
121cca |
+ uint32_t crc32val;
|
|
|
121cca |
const unsigned char *s = (const unsigned char *)buf;
|
|
|
121cca |
|
|
|
121cca |
crc32val = seed;
|
|
|
121cca |
--
|
|
|
121cca |
2.33.1
|
|
|
121cca |
|