From owner-svn-src-head@freebsd.org Tue Oct 13 18:35:44 2020 Return-Path: Delivered-To: svn-src-head@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 22FE94481A0; Tue, 13 Oct 2020 18:35:44 +0000 (UTC) (envelope-from adrian@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4C9kkm069dz43Bc; Tue, 13 Oct 2020 18:35:44 +0000 (UTC) (envelope-from adrian@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id D7F322175F; Tue, 13 Oct 2020 18:35:43 +0000 (UTC) (envelope-from adrian@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id 09DIZhJO058605; Tue, 13 Oct 2020 18:35:43 GMT (envelope-from adrian@FreeBSD.org) Received: (from adrian@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id 09DIZhQH058604; Tue, 13 Oct 2020 18:35:43 GMT (envelope-from adrian@FreeBSD.org) Message-Id: <202010131835.09DIZhQH058604@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: adrian set sender to adrian@FreeBSD.org using -f From: Adrian Chadd Date: Tue, 13 Oct 2020 18:35:43 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r366679 - head/tools/tools/ath/athdebug X-SVN-Group: head X-SVN-Commit-Author: adrian X-SVN-Commit-Paths: head/tools/tools/ath/athdebug X-SVN-Commit-Revision: 366679 X-SVN-Commit-Repository: base MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 13 Oct 2020 18:35:44 -0000 Author: adrian Date: Tue Oct 13 18:35:43 2020 New Revision: 366679 URL: https://svnweb.freebsd.org/changeset/base/366679 Log: [athdebug] Fix warnings generated by gcc on mips * commented out currently unused/dead code; need to see what it was once used for * remove unused variable * fix typing Modified: head/tools/tools/ath/athdebug/athdebug.c Modified: head/tools/tools/ath/athdebug/athdebug.c ============================================================================== --- head/tools/tools/ath/athdebug/athdebug.c Tue Oct 13 18:28:48 2020 (r366678) +++ head/tools/tools/ath/athdebug/athdebug.c Tue Oct 13 18:35:43 2020 (r366679) @@ -112,7 +112,7 @@ static struct { static uint64_t getflag(const char *name, int len) { - int i; + unsigned int i; for (i = 0; i < nitems(flags); i++) if (strncasecmp(flags[i].name, name, len) == 0) @@ -120,6 +120,7 @@ getflag(const char *name, int len) return 0; } +#if 0 static const char * getflagname(u_int flag) { @@ -130,11 +131,12 @@ getflagname(u_int flag) return flags[i].name; return "???"; } +#endif static void usage(void) { - int i; + unsigned int i; fprintf(stderr, "usage: %s [-i device] [flags]\n", progname); fprintf(stderr, "where flags are:\n"); @@ -149,7 +151,8 @@ main(int argc, char *argv[]) const char *ifname; const char *cp, *tp; const char *sep; - int c, op, i; + int op; + unsigned int i; uint64_t debug, ndebug; size_t debuglen; char oid[256];