memtest86plus/memtest86+-5.31b-gcc-12-fix.patch
Jaroslav Škarvada eebd65b6d3 Fixed FTBFS with gcc-12 and -Werror=uninitialized
Resolves: rhbz#2046736
2022-01-27 12:50:54 +01:00

13 lines
349 B
Diff

diff --git a/controller.c b/controller.c
index 6d3f202..795af12 100644
--- a/controller.c
+++ b/controller.c
@@ -3433,6 +3433,7 @@ static void poll_timings_i855(void) {
else { rp = 2; }
// RAS Active to precharge (tRAS)
+ ras = 0;
temp = 7-((drt >> 9)& 0x3);
if (temp == 0x0) { ras = 7; }
if (temp == 0x1) { ras = 6; }