Fixed FTBFS with gcc-12 and -Werror=uninitialized

Resolves: rhbz#2046736
This commit is contained in:
Jaroslav Škarvada 2022-01-27 12:50:54 +01:00
parent 921519f8c9
commit eebd65b6d3
2 changed files with 20 additions and 1 deletions

View File

@ -0,0 +1,12 @@
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; }

View File

@ -12,7 +12,7 @@
Name: memtest86+
Version: 5.31
Release: 0.5.%{?prerel_long}%{?dist}
Release: 0.6.%{?prerel_long}%{?dist}
License: GPLv2
Summary: Stand-alone memory tester for x86 and x86-64 computers
Source0: http://www.memtest.org/download/%{version}%{?prerel_short}/%{name}-%{version}%{?prerel_short}.tar.gz
@ -23,6 +23,8 @@ Source4: memtest86+.conf
Source5: README
# sent upstream
Patch0: memtest86+-5.31b-serial-console-fix.patch
# sent upstream
Patch1: memtest86+-5.31b-gcc-12-fix.patch
URL: http://www.memtest.org
# require glibc-devel.i386 via this file:
BuildRequires: make
@ -51,6 +53,7 @@ to add the %{name} entry to your GRUB boot menu.
cp -p %{SOURCE5} README.%{readme_suffix}
%patch0 -p1 -b .serial-console-fix
%patch1 -p1 -b .gcc-12-fix
#sed -i -e's,0x10000,0x100000,' memtest.lds
%ifarch x86_64
@ -104,6 +107,10 @@ install -Dpm 0644 %{SOURCE4} %{buildroot}%{_sysconfdir}/memtest86+.conf
%{_mandir}/man8/*.8.gz
%changelog
* Thu Jan 27 2022 Jaroslav Škarvada <jskarvad@redhat.com> - 5.31-0.6.beta
- Fixed FTBFS with gcc-12 and -Werror=uninitialized
Resolves: rhbz#2046736
* Thu Jan 20 2022 Fedora Release Engineering <releng@fedoraproject.org> - 5.31-0.5.beta
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild