aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.fortran/class-allocatable-array.f90
diff options
context:
space:
mode:
authorTom Tromey <tromey@adacore.com>2025-04-25 11:38:34 -0600
committerTom Tromey <tromey@adacore.com>2025-04-25 14:38:11 -0600
commit888a2e22a83582e437d128b6a498c2d8502a7ad0 (patch)
tree6c6e6c42bfa66ba456c2f2c4dfa9e8393e278dca /gdb/testsuite/gdb.fortran/class-allocatable-array.f90
parent129228c8b01a8fe0345e33fe07d185047721bd68 (diff)
downloadbinutils-888a2e22a83582e437d128b6a498c2d8502a7ad0.zip
binutils-888a2e22a83582e437d128b6a498c2d8502a7ad0.tar.gz
binutils-888a2e22a83582e437d128b6a498c2d8502a7ad0.tar.bz2
Fix d10v sim build with GCC 15
The d10v sim fails when built with GCC 15. From the bug: d10v/table.c:171:17: error: initialization of ‘void (*)(struct sim_state *, SIM_CPU *)’ {aka ‘void (*)(struct sim_state *, struct _sim_cpu *)’} from incompatible pointer type ‘void (*)(void)’ [-Wincompatible-pointer-types] 171 | { 0,0,0,0,0,0,0,(void (*)())0,0,{0,0,0}}, | ^ d10v/table.c:171:17: note: (near initialization for ‘Simops[165].func’) The bug here is that this is the wrong function pointer type. Since '0' is perfectly fine here, this patch simply removes the cast. Bug: https://sourceware.org/bugzilla/show_bug.cgi?id=32900 Approved-By: Tom de Vries <tdevries@suse.de>
Diffstat (limited to 'gdb/testsuite/gdb.fortran/class-allocatable-array.f90')
0 files changed, 0 insertions, 0 deletions