fbsd-nat: Fix build failure with GCC 12
authorEnze Li <enze.li@hotmail.com>
Tue, 26 Sep 2023 12:55:36 +0000 (20:55 +0800)
committerEnze Li <enze.li@hotmail.com>
Tue, 26 Sep 2023 13:19:07 +0000 (21:19 +0800)
commitd5fa6e8c6cb82b03f20dd521f70dcc7fefe573dc
tree4c12af43426c8b20c531d651c54cc6da35de25ab
parentdd05a5ca6944b8b035461350cca12aeb5d11dc03
fbsd-nat: Fix build failure with GCC 12

A user pointed out that the build failed on FreeBSD/amd64 with my last
commit.  The problem is that I'm not using the proper way to tell the
compiler that the variable has been "used".  This patch fixes this issue
as suggested by John.  Pushed as obvious.

Tested both on FreeBSD/amd64 and FreeBSD/aarch64 by rebuilding.

Suggested-By: John Baldwin <jhb@FreeBSD.org>
gdb/fbsd-nat.c