From nobody Fri Jul 29 18:47:35 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 4Lvc2c0Tf1z4Y1nk; Fri, 29 Jul 2022 18:47:36 +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 4Lvc2b2pyZz3pdn; Fri, 29 Jul 2022 18:47:35 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1659120455; 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=uUOI6yAHj44J4wyt8h8kDYEyQ5di4RzxwFm+vRmGD1I=; b=g+tum07BkJ9VwUK+ZKrYSj4Mh1JO4MrQv1gnflmNY20pdSo0HVhn/pdJ1lRHcoAlJ2lxLs cdc689RLihGYj2nsE2NgVQNIFcUp+I4TRW6Qm22sOLHWFv3+KKRtKIQqLwfkJQB6YogtuT AwCXDpyrJOiwSr2mQxvkl9v5xNfvZ5G6vnDS5np1IijvOQKcqDVNyEzg8Uwu1S4s32hkzK nbVHVvhx8KmlxwZHO6G84jIc8FBmMdZTUOktIiDxIphMu8q6ceSlu6+0FYzJjhGdIyBpy9 8nhIWTrx7Tzo29eU2jvnDP2nr/kZ9Q7OiN2U/WlyerbQdeYYOzUu3AHyI9MO0g== 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 4Lvc2b1w2VzlkG; Fri, 29 Jul 2022 18:47:35 +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 26TIlZrF024296; Fri, 29 Jul 2022 18:47:35 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 26TIlZm5024295; Fri, 29 Jul 2022 18:47:35 GMT (envelope-from git) Date: Fri, 29 Jul 2022 18:47:35 GMT Message-Id: <202207291847.26TIlZm5024295@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Dimitry Andric Subject: git: 4e417669acbe - stable/13 - Adjust playinit() definition to avoid clang 15 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: dim X-Git-Repository: src X-Git-Refname: refs/heads/stable/13 X-Git-Reftype: branch X-Git-Commit: 4e417669acbe422e939c631f12515803ddc0a4a2 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1659120455; 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=uUOI6yAHj44J4wyt8h8kDYEyQ5di4RzxwFm+vRmGD1I=; b=NzKMucAYQ0ofCN79dg5nvXVVbOTIotvVJi/I6QlCcxZtUzNlwjwVR1LUdgjDiWmWB0kqse EJH2WTl87T/FDPIJhV3cYI9Tc5BDd3qENQFd/169gTNl/EsoGuhO6cjcUwN4XUEqTiMXCb NC4LEoy9ed4NH/ipca0winhjtVL7exvvchxGnUO7CzDu8vyftuqbLxwogT4V62l3n5HWkQ d4YAKrxy+WjFIwcbSF9tCaX+qc+hZjOWxtLPQLH6VGnmHx5Vwxaqipyd4DUQIMiQBOqHcU q8dKV2FlvbB4UItpsdBOkA70NPeyWiy4xm2V6d5Q/oYTDpN2t/9VmwqohuCPSg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1659120455; a=rsa-sha256; cv=none; b=s2TzJ+swvYh2n7LDlqPzn7CPbnilgW0T+d3nRPfi2oKAh4kQ0IOtiWTy6z42tJEI7cBsWP PIf5CX/wTZoDdP13tXT657I7SIxsgSv3lNk4dB9GV9EZRnSy/OxOFhay1RiXQQBZgfeKQI 6MCJD5eOllWy74k0CiDxQCC0JW8txdx1MsfZ22XtDtUCMjbv5t1bC4t98wMq1cnKmuQDzr Yq/L+k02mJk7pXZsdfqXp0lHGRtwz9IZDkz2aSNAeb9ek2L4gBn7ck/b5ENYHPDVjMOvvt CVqF49zmqLWrh4bizqGUgrwnzbvMc4lMwMD6hxRxM/xBdtzLKS9Oap8QSWuVYw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch stable/13 has been updated by dim: URL: https://cgit.FreeBSD.org/src/commit/?id=4e417669acbe422e939c631f12515803ddc0a4a2 commit 4e417669acbe422e939c631f12515803ddc0a4a2 Author: Dimitry Andric AuthorDate: 2022-07-26 11:43:46 +0000 Commit: Dimitry Andric CommitDate: 2022-07-29 18:30:00 +0000 Adjust playinit() definition to avoid clang 15 warning With clang 15, the following -Werror warning is produced: sys/dev/speaker/spkr.c:182:9: error: a function declaration without a prototype is deprecated in all versions of C [-Werror,-Wstrict-prototypes] playinit() ^ void This is because playinit() is declared with a (void) argument list, but defined with an empty argument list. Make the definition match the declaration. MFC after: 3 days (cherry picked from commit 57c46916e145581807333bc06a08e9532721bd8f) --- sys/dev/speaker/spkr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/dev/speaker/spkr.c b/sys/dev/speaker/spkr.c index 5cef331eae5f..86b58cda9843 100644 --- a/sys/dev/speaker/spkr.c +++ b/sys/dev/speaker/spkr.c @@ -179,7 +179,7 @@ static int pitchtab[] = }; static void -playinit() +playinit(void) { octave = DFLT_OCTAVE; whole = (100 * SECS_PER_MIN * WHOLE_NOTE) / DFLT_TEMPO;