From nobody Fri Jul 7 16:51:08 2023 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 4QyKCw2wWhz4m37L; Fri, 7 Jul 2023 16:51:08 +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 4QyKCw2PBgz4MgZ; Fri, 7 Jul 2023 16:51:08 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1688748668; 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=xm+POTC1od20DWi/y01l32178udLXY1BWkfV+eD6ngE=; b=gZuz2rjmR67ORuBq9aHoJ0nCyBQKPz5TO58rOr6wX8dOx4pkbiTIucmZIhhpomO5yVFqYF xdPI9/OaKpgGap/B3BtE3AyRTCHLKr0uj8diLr9sTLmkiaCRUNN8OE2Zifikd6u2JutPNC lz6D2ry7B6Ce7PaiHoes9VV6W3WjPA41E3BivLabNqRp2Ks4sDb0a5iIgX8avfntv/9E4r hqTdMTys2wJ9ajmJ4CNd1Fe0uidr6IsQNlYZNLxgz7O8zsftiIM3NQoOU8nZc6Lsewz0mw ixUvSTD7vXGo998AxqyqmiHFXOpBZoDiL6HM11A7NdkvIiKEy9RI2NcdsLeXpw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1688748668; 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=xm+POTC1od20DWi/y01l32178udLXY1BWkfV+eD6ngE=; b=qMVqVZqLe5xJsdF9w3pDeafxd6RTTDR8DxesB+1et8X4bowQCxvKHAz7lxtyaGq6kfkqrX TKWRrgZ2ZHdAjr4b8Go8ChJn4U2OueBqJMELnthTceeizRSZKihuCcnNPhVB7Vym7rVI1f dGeqlwv2XgrLE/2KTFi8v9tQc6cr2b+9QFSyq0GMyHvIiq2X/waXCy7TbbAsFZi9hF1oT7 oL++W2brntGXYLnuzkdN/vnuBb/Ih8as37BUbxwJkdH7XaMwRE5LC6lhpesqW6m911g4Xt WPjKAkk5mP+OAMLdvQ3vSCVzTWDDqRwPP2soJ+O3HTm+C0MWvCgc1ZO7Dx9vGg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1688748668; a=rsa-sha256; cv=none; b=PAVFOf40W1fHGso8S/yL+Fa7hdZzE4heF4KvMydn808jfK+wJ4OjqRAJhh6piqisga0H1G f6zHtaTm6auDAtGsEF7Osoh2rG93MDSpn0aoXpBOxFJiPplV0mLuF1I21XrRBEe/k3pYNG pnFuZt1ICpbv557OlgF2saJubywruaxe/b28MTTjMBRvfp4BR0iaZ1z5gYKODAdunNjK91 D8n1uC0T6Cq1FHOHA+n0U2CiJRnL3D4peW+uuEOAwaIHfCYBPmUjA8TFzjU5y9SmhVENfN o2kPbBqrkZ+e9eX1z8GYQEa7X8bo2Cfe+MhGM+y/brSH5xqQ0UGqfkzrwD2YwQ== 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 4QyKCw1RvczmLj; Fri, 7 Jul 2023 16:51:08 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 367Gp8Gf010627; Fri, 7 Jul 2023 16:51:08 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 367Gp8kI010626; Fri, 7 Jul 2023 16:51:08 GMT (envelope-from git) Date: Fri, 7 Jul 2023 16:51:08 GMT Message-Id: <202307071651.367Gp8kI010626@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Warner Losh Subject: git: 90597773cdd2 - main - Mark usage function as __dead2 in programs where it does not return 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: imp X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 90597773cdd25fc28a9149900be50d000bb311b5 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by imp: URL: https://cgit.FreeBSD.org/src/commit/?id=90597773cdd25fc28a9149900be50d000bb311b5 commit 90597773cdd25fc28a9149900be50d000bb311b5 Author: Alfonso Gregory AuthorDate: 2023-07-07 16:39:23 +0000 Commit: Warner Losh CommitDate: 2023-07-07 16:45:17 +0000 Mark usage function as __dead2 in programs where it does not return In most cases, usage does not return, so mark them as __dead2. For the cases where they do return, they have not been marked __dead2. Reviewed by: imp Pull Request: https://github.com/freebsd/freebsd-src/pull/735 --- tools/regression/sysvshm/shmtest.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/regression/sysvshm/shmtest.c b/tools/regression/sysvshm/shmtest.c index c3e5962d9fa1..c84ddfd7657d 100644 --- a/tools/regression/sysvshm/shmtest.c +++ b/tools/regression/sysvshm/shmtest.c @@ -54,7 +54,7 @@ static void sigsys_handler(int); static void sigchld_handler(int); static void cleanup(void); static void receiver(void); -static void usage(void); +static void usage(void) __dead2; static const char *m_str = "The quick brown fox jumped over the lazy dog.";