git: 11ab827a1ce4 - stable/12 - top: Remove a duplicate extern declaration for show_args.
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 22 Mar 2023 22:28:35 UTC
The branch stable/12 has been updated by jhb:
URL: https://cgit.FreeBSD.org/src/commit/?id=11ab827a1ce4ec10cf16721019d53b94d044afb1
commit 11ab827a1ce4ec10cf16721019d53b94d044afb1
Author: John Baldwin <jhb@FreeBSD.org>
AuthorDate: 2021-09-15 16:03:17 +0000
Commit: John Baldwin <jhb@FreeBSD.org>
CommitDate: 2023-03-22 18:47:15 +0000
top: Remove a duplicate extern declaration for show_args.
This fixes a -Wnested-extern error with GCC 9. There is an existing
extern declaration in top.h.
Reviewed by: imp, emaste
Differential Revision: https://reviews.freebsd.org/D31937
(cherry picked from commit 4c9cb057bd96bd10278f5ce7a735fff4c08e3c30)
---
usr.bin/top/machine.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/usr.bin/top/machine.c b/usr.bin/top/machine.c
index d41b3e4f6b74..4f5d5e26ca08 100644
--- a/usr.bin/top/machine.c
+++ b/usr.bin/top/machine.c
@@ -879,7 +879,6 @@ get_process_info(struct system_info *si, struct process_select *sel,
static int
cmd_matches(struct kinfo_proc *proc, const char *term)
{
- extern int show_args;
char **args = NULL;
if (!term) {