Hello community,

here is the log from the commit of package gdb for openSUSE:Factory checked in 
at 2018-04-10 09:50:43
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/gdb (Old)
 and      /work/SRC/openSUSE:Factory/.gdb.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "gdb"

Tue Apr 10 09:50:43 2018 rev:120 rq:593526 version:8.1

Changes:
--------
--- /work/SRC/openSUSE:Factory/gdb/gdb.changes  2018-03-16 10:33:35.481553999 
+0100
+++ /work/SRC/openSUSE:Factory/.gdb.new/gdb.changes     2018-04-10 
09:50:48.791850770 +0200
@@ -1,0 +2,5 @@
+Tue Mar 27 14:01:27 UTC 2018 - m...@suse.com
+
+- Add some -Wno-error flags for gcc-8 compatibility.
+
+-------------------------------------------------------------------

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ gdb.spec ++++++
--- /var/tmp/diff_new_pack.xM8ZGZ/_old  2018-04-10 09:50:53.043696710 +0200
+++ /var/tmp/diff_new_pack.xM8ZGZ/_new  2018-04-10 09:50:53.047696565 +0200
@@ -590,11 +590,21 @@
 # warn about unknown -Wno- flags, _except_ if there are other
 # diagnostics as well, so let's force an uninitialized use warning
 # and grep for the diagnostic about the -Wno flag:
-if ! echo "int foo(void) { int a; return a;} " | \
-   $CC  -x c -c - -o /dev/null -W -Wno-implicit-fallthrough 2>&1 | \
-   grep Wno-implici >/dev/null; then
-  CFLAGS="$CFLAGS -Wno-implicit-fallthrough"
-fi
+# -Wno-error=cast-function-type:
+# 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 * (*)(struc t bfd *, void 
*, long unsigned int)'} [-Werror=cast-function-type]
+#    ((asymbol * (*) (bfd *, void *, unsigned long)) bfd_nullvoidptr)
+# -Wno-error=stringop-truncation:
+# 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));
+for opt in -Wno-implicit-fallthrough -Wno-error=cast-function-type 
-Wno-error=stringop-truncation; do
+  if ! echo "int foo(void) { int a; return a;} " | \
+     $CC  -x c -c - -o /dev/null -W ${opt} 2>&1 | \
+     egrep "Wno|no option" >/dev/null; then
+    CFLAGS="$CFLAGS ${opt}"
+  fi
+done
 %if %{have_libipt}
 CFLAGS="$CFLAGS -DPERF_ATTR_SIZE_VER5_BUNDLE"
 (


Reply via email to