Remove as no longer needed:
Workaround gcc-8.0: -Wno-error=cast-function-type,stringop-truncation
This commit is contained in:
parent
4f936c1cb8
commit
5cc516897b
18
gdb.spec
18
gdb.spec
@ -26,7 +26,7 @@ Version: 8.1.90.%{snapsrc}
|
|||||||
|
|
||||||
# The release always contains a leading reserved number, start it at 1.
|
# 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.
|
# `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
|
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
|
Group: Development/Debuggers
|
||||||
@ -503,18 +503,6 @@ cd %{gdb_build}$fprofile
|
|||||||
export CFLAGS="$RPM_OPT_FLAGS %{?_with_asan:-fsanitize=address}"
|
export CFLAGS="$RPM_OPT_FLAGS %{?_with_asan:-fsanitize=address}"
|
||||||
export LDFLAGS="%{?__global_ldflags} %{?_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
|
%if 0%{!?rhel:1} || 0%{?rhel} > 7
|
||||||
CFLAGS="$CFLAGS -DDNF_DEBUGINFO_INSTALL"
|
CFLAGS="$CFLAGS -DDNF_DEBUGINFO_INSTALL"
|
||||||
%endif
|
%endif
|
||||||
@ -1035,6 +1023,10 @@ fi
|
|||||||
%endif
|
%endif
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Thu Jul 12 2018 Jan Kratochvil <jan.kratochvil@redhat.com> - 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 <jan.kratochvil@redhat.com> - 8.1.90.20180708-31.fc29
|
* Thu Jul 12 2018 Jan Kratochvil <jan.kratochvil@redhat.com> - 8.1.90.20180708-31.fc29
|
||||||
- [dts] Upgrade libstdc++-v3-python to 8.1.1-20180626.
|
- [dts] Upgrade libstdc++-v3-python to 8.1.1-20180626.
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user