From 5cc516897b427f843d99ba2d7bae01cbe9b400af Mon Sep 17 00:00:00 2001 From: Jan Kratochvil Date: Jul 12 2018 09:16:09 +0000 Subject: Remove as no longer needed: Workaround gcc-8.0: -Wno-error=cast-function-type,stringop-truncation --- diff --git a/gdb.spec b/gdb.spec index 19be478..8b74d3a 100644 --- a/gdb.spec +++ b/gdb.spec @@ -26,7 +26,7 @@ Version: 8.1.90.%{snapsrc} # The release always contains a leading reserved number, start it at 1. # `upstream' is not a part of `name' to stay fully rpm dependencies compatible for the testing. -Release: 31%{?dist} +Release: 32%{?dist} License: GPLv3+ and GPLv3+ with exceptions and GPLv2+ and GPLv2+ with exceptions and GPL+ and LGPLv2+ and LGPLv3+ and BSD and Public Domain and GFDL Group: Development/Debuggers @@ -503,18 +503,6 @@ cd %{gdb_build}$fprofile export CFLAGS="$RPM_OPT_FLAGS %{?_with_asan:-fsanitize=address}" export LDFLAGS="%{?__global_ldflags} %{?_with_asan:-fsanitize=address}" -%if 0%{?fedora} > 27 || 0%{?rhel} > 7 -# FIXME: gcc-8.0: -# ./elf32-target.h:215:4: error: cast between incompatible function types from 'void * (*)(bfd *)' {aka 'void * (*)(struct bfd *)'} to 'asymbol * (*)(bfd *, void *, long unsigned int)' {aka 'struct bfd_symbol * (*)(struct bfd *, void *, long unsigned int)'} [-Werror=cast-function-type] -# ((asymbol * (*) (bfd *, void *, unsigned long)) bfd_nullvoidptr) -CFLAGS="$CFLAGS -Wno-error=cast-function-type" - -# FIXME: gcc-8.0: -# linux-tdep.c:1767:11: error: ‘char* strncpy(char*, const char*, size_t)’ specified bound 17 equals destination size [-Werror=stringop-truncation] -# strncpy (p->pr_fname, basename, sizeof (p->pr_fname)); -CFLAGS="$CFLAGS -Wno-error=stringop-truncation" -%endif # 0%{?fedora} > 27 || 0%{?rhel} > 7 - %if 0%{!?rhel:1} || 0%{?rhel} > 7 CFLAGS="$CFLAGS -DDNF_DEBUGINFO_INSTALL" %endif @@ -1035,6 +1023,10 @@ fi %endif %changelog +* Thu Jul 12 2018 Jan Kratochvil - 8.1.90.20180708-32.fc29 +- Remove as no longer needed: + Workaround gcc-8.0: -Wno-error=cast-function-type,stringop-truncation + * Thu Jul 12 2018 Jan Kratochvil - 8.1.90.20180708-31.fc29 - [dts] Upgrade libstdc++-v3-python to 8.1.1-20180626.