From nobody Fri Jul 29 18:48:40 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 4Lvc3r34F5z4Y1sh; Fri, 29 Jul 2022 18:48:40 +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 4Lvc3r2ccGz3tMY; Fri, 29 Jul 2022 18:48:40 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1659120520; 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=zMLfchR6jrRXKNHYEBbbABcyURyk/9fnhGNVMFs9VEY=; b=moYUhx7s0s6ESOyTKBXUbzvnVL6qhmqleDCVFgkdcksKO4XNpF92E8Q47JjZf9e6a4s8gc yMHxeGA7OBdoOZRWrMBflVG77muH6WG7eyi2YZTfdDGUQqqUiae41e8mt8I0p3x5pIR3Cb CXEkCrPkrt3P9f0z1xJl2xLrU0cyWo6UE9B93sqoL8MIf0HNs7FWCq5W/FzK4O9ne3GyUH xxR3kuHtQQSpkbfJtAjuCrUUwNgDJcdL091ryyn98x50Y5Usvq4z3Dfkn585GE0LlvfJbZ ltVFfC/wzHRYy5esaA71kF4UCuIMUlkl2G01EnfQKA01up3wiPQ8rdQ2dTRYoQ== 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 4Lvc3r1kR9zmB8; Fri, 29 Jul 2022 18:48:40 +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 26TIme0m025676; Fri, 29 Jul 2022 18:48:40 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 26TImevp025675; Fri, 29 Jul 2022 18:48:40 GMT (envelope-from git) Date: Fri, 29 Jul 2022 18:48:40 GMT Message-Id: <202207291848.26TImevp025675@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: b925f05b1288 - stable/12 - 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/12 X-Git-Reftype: branch X-Git-Commit: b925f05b128808371e2d0879c0b42e110cb066e9 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1659120520; 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=zMLfchR6jrRXKNHYEBbbABcyURyk/9fnhGNVMFs9VEY=; b=hNi4bhUsHpDINBJvLU7eiiSqSakER8YxRkcniA2ov7vvImoYeqvmpSo1hrLWjxxY4vNOt7 D4z79YhMRiB8SFbrW0i8/pSWO0HJo92kjv3dRqd5MWluQHEvgNsPkzNkn6bU3yfRVDDgOw ESNYQu5T32Ag47CRu8UcCATfu+PgYJ8WF3RDKqt12+suwhLy55QKbbhyDkzajh1aIuIdgk zisj+sI5ZHJcfQLhh7OF8fNUDMtZuxTf6sAsXy93Nvo4onGdaNGz1hmlqr5/FZtPhOQRkq gf+mbMDqaNJcKyeO7SggWaKNk+DS1RNyaQsf5Z0ucJo3uVb1U2zUPBW4LaVJIA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1659120520; a=rsa-sha256; cv=none; b=K3dOpYsUgeSIbTkIqLUyAqy/NUOywUTv9FShiKj0/eyPZ6FfQUuuAmTFy8X56UMuMuYm1J ypHZx65Ku+2ZIWymAZElueX4QV9Kt3qThHxRvF4HQ3XtQS0z7HhiYP+5XbmpBXVV3g04J/ qqHtrktOnGlR88qYB8XZ0wdaz0YoL3UpMnhjDl6xMZYBfW1NHKk2sL6mpBDP8+ZwkHYxwf XpW0XK6IWS8GZWNtko2C5wvGjAbnumQcPztmfCCLVmd8B45vZx40r1ezdfIto0OdIItlS6 J7jYrLXfjuBfgKW8+C85yIxquN0kqr3wwX4rmfDDrYt/jRMUjRJj06nL1TirMg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch stable/12 has been updated by dim: URL: https://cgit.FreeBSD.org/src/commit/?id=b925f05b128808371e2d0879c0b42e110cb066e9 commit b925f05b128808371e2d0879c0b42e110cb066e9 Author: Dimitry Andric AuthorDate: 2022-07-26 11:43:46 +0000 Commit: Dimitry Andric CommitDate: 2022-07-29 18:43:14 +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 9b5746d6cf92..af4179cfc106 100644 --- a/sys/dev/speaker/spkr.c +++ b/sys/dev/speaker/spkr.c @@ -185,7 +185,7 @@ static int pitchtab[] = }; static void -playinit() +playinit(void) { octave = DFLT_OCTAVE; whole = (100 * SECS_PER_MIN * WHOLE_NOTE) / DFLT_TEMPO;