aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorEnze Li <enze.li@hotmail.com>2023-09-26 20:55:36 +0800
committerEnze Li <enze.li@hotmail.com>2023-09-26 21:19:07 +0800
commitd5fa6e8c6cb82b03f20dd521f70dcc7fefe573dc (patch)
tree4c12af43426c8b20c531d651c54cc6da35de25ab /gdb
parentdd05a5ca6944b8b035461350cca12aeb5d11dc03 (diff)
downloadbinutils-d5fa6e8c6cb82b03f20dd521f70dcc7fefe573dc.zip
binutils-d5fa6e8c6cb82b03f20dd521f70dcc7fefe573dc.tar.gz
binutils-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')
-rw-r--r--gdb/fbsd-nat.c2
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;