You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/sys-apps/memtester/files/memtester-4.3.0-fix-gcc10-f...

32 lines
514 B

--- a/tests.c
+++ b/tests.c
@@ -27,6 +27,9 @@
#define PROGRESSOFTEN 2500
#define ONE 0x00000001L
+union mword8_type mword8;
+union mword16_type mword16;
+
/* Function definitions. */
int compare_regions(ulv *bufa, ulv *bufb, size_t count) {
--- a/types.h
+++ b/types.h
@@ -25,12 +25,12 @@
int (*fp)();
};
-union {
+union mword8_type {
unsigned char bytes[UL_LEN/8];
ul val;
-} mword8;
+};
-union {
+union mword16_type {
unsigned short u16s[UL_LEN/16];
ul val;
-} mword16;
+};