]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
Fix small bug in compile.exp
authorTom Tromey <tom@tromey.com>
Wed, 15 Nov 2023 19:42:52 +0000 (12:42 -0700)
committerTom Tromey <tom@tromey.com>
Thu, 16 Nov 2023 23:32:02 +0000 (16:32 -0700)
commita721a9b12f7fb1331ba2868129bc52d07a0e558a
tree535511cc67bee10b05239de88c87224fba57342e
parent7db795bc67abfc8ea3a34057f434960ee0b3cf41
Fix small bug in compile.exp

compile.exp generally does not work for me on Fedora 38.  However, I
sent a GCC patch to fix the plugin crash.  With that patch, I get this
error from one test in compile.exp:

gdb command line:1:22: warning: initialization of 'int (*)(int)' from incompatible pointer type 'int (*)()' [-Wincompatible-pointer-types]

This patch adds a cast to compile.exp.  This makes the test pass.

Reviewed-by: Keith Seitz <keiths@redhat.com>
gdb/testsuite/gdb.compile/compile.exp