summaryrefslogtreecommitdiffstats
path: root/kernel.spec
diff options
context:
space:
mode:
authorLaura Abbott <labbott@redhat.com>2018-03-14 14:26:51 -0700
committerLaura Abbott <labbott@redhat.com>2018-03-14 14:26:51 -0700
commit86e3b7659f412755f5ac538d82567095b0863ffd (patch)
tree3e23b1bcfdc2129cd5db227a4145054d11a8c01c /kernel.spec
parentd31ffa623bc4b180917b0114687d75f5f846996b (diff)
downloadkernel-86e3b7659f412755f5ac538d82567095b0863ffd.tar.gz
kernel-86e3b7659f412755f5ac538d82567095b0863ffd.tar.xz
kernel-86e3b7659f412755f5ac538d82567095b0863ffd.zip
Temporarily workaround gcc warning
New gcc, new warnings: ../lib/str_error_r.c: In function ‘str_error_r’: ../lib/str_error_r.c:25:3: error: passing argument 1 to restrict-qualified parameter aliases with argument 5 [-Werror=restrict] snprintf(buf, buflen, "INTERNAL ERROR: strerror_r(%d, %p, %zd)=%d", errnum, buf, buflen, err); ^~~~~~~~ cc1: all warnings being treated as errors Bring in a quick fix for now.
Diffstat (limited to 'kernel.spec')
-rw-r--r--kernel.spec2
1 files changed, 2 insertions, 0 deletions
diff --git a/kernel.spec b/kernel.spec
index 7131462a0..58a5920f8 100644
--- a/kernel.spec
+++ b/kernel.spec
@@ -506,6 +506,8 @@ Source5000: patch-4.%{base_sublevel}-git%{gitrev}.xz
# ongoing complaint, full discussion delayed until ksummit/plumbers
Patch002: 0001-iio-Use-event-header-from-kernel-tree.patch
+# gcc -Werror=aliasing workaround
+Patch003: 0001-Temporarily-work-around-gcc-aliasing-warning-error.patch
%if !%{nopatches}