diff options
author | Enze Li <enze.li@hotmail.com> | 2023-09-26 20:55:36 +0800 |
---|---|---|
committer | Enze Li <enze.li@hotmail.com> | 2023-09-26 21:19:07 +0800 |
commit | d5fa6e8c6cb82b03f20dd521f70dcc7fefe573dc (patch) | |
tree | 4c12af43426c8b20c531d651c54cc6da35de25ab /gdb/fbsd-nat.c | |
parent | dd05a5ca6944b8b035461350cca12aeb5d11dc03 (diff) | |
download | gdb-d5fa6e8c6cb82b03f20dd521f70dcc7fefe573dc.zip gdb-d5fa6e8c6cb82b03f20dd521f70dcc7fefe573dc.tar.gz gdb-d5fa6e8c6cb82b03f20dd521f70dcc7fefe573dc.tar.bz2 |
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>
Diffstat (limited to 'gdb/fbsd-nat.c')
-rw-r--r-- | gdb/fbsd-nat.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/fbsd-nat.c b/gdb/fbsd-nat.c index 81a77b3..55a36f2 100644 --- a/gdb/fbsd-nat.c +++ b/gdb/fbsd-nat.c @@ -2094,7 +2094,7 @@ fbsd_nat_target::detach (inferior *inf, int from_tty) } #else /* pacify gcc */ - wptid = (void) null_ptid; + (void) wptid; #endif sig = 0; break; |