From nobody Mon Apr 18 16:39:33 2022 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id E0DE011D4A17; Mon, 18 Apr 2022 16:39:34 +0000 (UTC) (envelope-from git@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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Kht1x2Lqkz4v6C; Mon, 18 Apr 2022 16:39:33 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1650299973; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=3aoVX6VFLzCYiTGKOM6aJE4cGfRxizZz9PITGnD00gY=; b=MunbhjjEbEbMPBusnK5lG+8yy6BRe260NK03GzdPmbsB4LjJHu6nZQX0zF9nDw5EZM6xgO lZrM0gIbqFZJ7eF6y0LSQg58p7awVcPsIHJFgP6ccowShFwApyC1FwhD/+wzqSm2ZfVIwp oTbEUm0j5O7aKnzs2yYvFLxUcIvBLjsZQxRBbNK7ik1XuinlDUI5tXQIswx8wKLOO46S2A PKGxt7XfG2bG+JJPKkoWxdepDQerEU9B8gnOfLxXHHy7NoicDt4TlpKciamlWaAWtlJwJ3 S07AfyExP4uR+oLwL7FsRB6cERZn69ZbAVqmPgh4iexeZ67dGL89jpFVhmziUg== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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 did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 1C2151645D; Mon, 18 Apr 2022 16:39:33 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 23IGdX9V085881; Mon, 18 Apr 2022 16:39:33 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 23IGdXAM085880; Mon, 18 Apr 2022 16:39:33 GMT (envelope-from git) Date: Mon, 18 Apr 2022 16:39:33 GMT Message-Id: <202204181639.23IGdXAM085880@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Mark Johnston Subject: git: e3d976742cd7 - releng/13.1 - ctf: Fix a -Wunused-but-set-variable warning List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: markj X-Git-Repository: src X-Git-Refname: refs/heads/releng/13.1 X-Git-Reftype: branch X-Git-Commit: e3d976742cd7c65553ead400452d2e3c9c2cbd1d Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1650299973; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=3aoVX6VFLzCYiTGKOM6aJE4cGfRxizZz9PITGnD00gY=; b=nTDgiK0hovJ8DcEMys7o0mdS5b2hCTxY10JEqW3mobw5CycN8u1cvEmINtq//Pk38a3jl0 pHBWmzv81hxNXAbWOewrlwvWatCAItIZ92T/qruvE6qwW0PUQX2r007c94UkvWo3SIpMkH gT0E08pIjTA2NaeFM2C39CgRjNYuIOEtkNiDHdOa/C9Hlmp7ZLD+zb+RZ+b/xGAl5GFtPu bqWAhnLIJ8wOhCQrgykwCKaS1C1rI6HYugotJIuGMEylShZETK3QfkatnsTSA6oC2el41D X0EakpKJ1iB1phf739yjGV3J8d3096nN1Hq3FIJPBM3S8STxKaJhDBzx6BlbEA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1650299973; a=rsa-sha256; cv=none; b=cL5fmu0WnZsE9sPwMsvvq5vtuaUC5drFbqujvqF7y1HIHRZY+0ttXRETKpJG3nT/I8Am3J EEVh2FYsSsIaI/Dzd+5qQ+z5P2GsfPtQyIu2ZHw5eV1uTZjqwKuSXfeN08P3yja2CnXEc6 2yh5pUVkAHb7/uBSBb4fIG66wyOZW91dsb0uvAADCoFBH1mzPOCcFJKySPAswC2A3Y9alH yT9B1KtGc3i12AdLiPVEW0VWweRDmHK3TP6M/6PGGSq+moIuvWb4BvajbJI+eNYDVj3WRY 3BRlwCfKDAbi97OjDZCP4jrhH6aK51sLVPpZCCA2Y+BDbd+9ELH9vHwxDXRZjQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch releng/13.1 has been updated by markj: URL: https://cgit.FreeBSD.org/src/commit/?id=e3d976742cd7c65553ead400452d2e3c9c2cbd1d commit e3d976742cd7c65553ead400452d2e3c9c2cbd1d Author: Mark Johnston AuthorDate: 2022-03-07 15:34:11 +0000 Commit: Mark Johnston CommitDate: 2022-04-18 16:38:50 +0000 ctf: Fix a -Wunused-but-set-variable warning Approved by: re (gjb) Sponsored by: The FreeBSD Foundation (cherry picked from commit cb6f7225629301d3179f6e9f6d3be4d80f57a31f) (cherry picked from commit d80faf878a4473c6136f06b774d9176ec9449479) --- cddl/contrib/opensolaris/tools/ctf/cvt/output.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/cddl/contrib/opensolaris/tools/ctf/cvt/output.c b/cddl/contrib/opensolaris/tools/ctf/cvt/output.c index 3385e4b2d09f..05f71231ac68 100644 --- a/cddl/contrib/opensolaris/tools/ctf/cvt/output.c +++ b/cddl/contrib/opensolaris/tools/ctf/cvt/output.c @@ -467,7 +467,6 @@ write_file(Elf *src, const char *srcname, Elf *dst, const char *dstname, int keep_stabs = (flags & CTF_KEEP_STABS); int *secxlate; int srcidx, dstidx; - int curnmoff = 0; int changing = 0; int pad; int i; @@ -529,7 +528,6 @@ write_file(Elf *src, const char *srcname, Elf *dst, const char *dstname, secxlate[srcidx] = -1; } else { secxlate[srcidx] = dstidx++; - curnmoff += strlen(sname) + 1; } new_offset = (off_t)dehdr.e_phoff;