Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 10 May 2022 23:23:56 GMT
From:      John Baldwin <jhb@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org
Subject:   git: 10e4ad0b1b49 - stable/13 - top: Remove a duplicate extern declaration for show_args.
Message-ID:  <202205102323.24ANNuDs072162@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch stable/13 has been updated by jhb:

URL: https://cgit.FreeBSD.org/src/commit/?id=10e4ad0b1b49b770b6d9873bf34fd2cc93c6c454

commit 10e4ad0b1b49b770b6d9873bf34fd2cc93c6c454
Author:     John Baldwin <jhb@FreeBSD.org>
AuthorDate: 2021-09-15 16:03:17 +0000
Commit:     John Baldwin <jhb@FreeBSD.org>
CommitDate: 2022-05-10 22:51:49 +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 1fe2a91a655c..315c8be1a4c2 100644
--- a/usr.bin/top/machine.c
+++ b/usr.bin/top/machine.c
@@ -895,7 +895,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) {



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202205102323.24ANNuDs072162>