From nobody Tue Jul 26 18:00:26 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 4Lsl7Z5CqNz4Xg8k; Tue, 26 Jul 2022 18:00:26 +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 4Lsl7Z4XFGz3jN7; Tue, 26 Jul 2022 18:00:26 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1658858426; 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=yM1+GC7dNA0VoPveDQIIsOPZo7hgQndnOE5hoVeeils=; b=w/GSgLfTyA8T1cK0GfryA0NDSYHOLKVXqwQ0O81lnQU4gl3mQLO9Y8hfJJYAYzEBs5u3Gb vZnIrk/yqLX0kU6Qw6oD33K7Wdc4jufQDTi0ELEKxLI1k3bbXcYSumWV7iZZUXJh+96xnd mgQlSEpCpAsxg72xW7S49jGYJkEInEaI85qxkDW/5zhqYqrpLDa9NSuTs1LqHJ9H2yNA7H wyHh7fHMt0bZWZXrfnfL/Ub6Jn9d83HOQ+/eIEAHfsoXG3+NzX4Muvd3HkN/4QwAAo/oeM BsVazwsHaiRwf8DqOHLRYauovsSQKDYMIbRA+ijjVt3OzlqarstlvFRvkGRgMA== 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 4Lsl7Z33K0zlql; Tue, 26 Jul 2022 18:00:26 +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 26QI0QuB005719; Tue, 26 Jul 2022 18:00:26 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 26QI0Qtm005718; Tue, 26 Jul 2022 18:00:26 GMT (envelope-from git) Date: Tue, 26 Jul 2022 18:00:26 GMT Message-Id: <202207261800.26QI0Qtm005718@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Dimitry Andric Subject: git: 57c46916e145 - main - 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/main X-Git-Reftype: branch X-Git-Commit: 57c46916e145581807333bc06a08e9532721bd8f Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1658858426; 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=yM1+GC7dNA0VoPveDQIIsOPZo7hgQndnOE5hoVeeils=; b=SIjWZCj/WP3QHUhiFXKzgNQaaq2oV3KAq1n+UxH/vKhqpbgA8FfREmpfLX7SYqPTTvDrnd CK3AWu7jyeDWgk805Mj8AOtY6M1iB4H2r2VckJNZpnDxgmGQzAMfN/aEKEI+FYdFfojb6i 4syVoiU2XTxoHVtXaG9zibs0GWWxk100/7cMGLj6ikKhA0h11TGKMmIm77huvVVFfNmuTc qG7R1m0s1D8v8uDFaJBmaUGfK89wFs2fIFSmYriOvTVay1FUJrOev2s3h1vN+tG/BOlgcZ wQ/iwfCqa1E8UWWunzWeyijNOJK/wfvVi0BhVgGGc1+akXjKKsibxHsYrEjiuw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1658858426; a=rsa-sha256; cv=none; b=C5SAzqBIc2h7fpsik9oc35OCul1oFMWdrna7JM5X8wgD3qYnGbJ/LPF4gEgrSURrH+TvYT TWGZ+8cvUeYd7Svt+w4c7U0CYxuK45P1ySlQKtZTSjTua9rlCKRKWLOZcS37xJL4+jG3b6 Wh7T1Qcso+igEFCmZMxx/L5jB50LwnN57l2SXOjyAQDAMq/y0MwHAiUynzMmT1kGKZ0duV no6gl6vaeyhuiB33+r+2iWmHjoFe5mDKGjZjRZ4UNRcRFvmicRhRx3oaZuHRGAE1TSbYJz HPIWZcnk7WR3VhVucMvNt2dkK84fSVfYS8P1ZelkgpgbX8HyYPCyyLlMGWQcAw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by dim: URL: https://cgit.FreeBSD.org/src/commit/?id=57c46916e145581807333bc06a08e9532721bd8f commit 57c46916e145581807333bc06a08e9532721bd8f Author: Dimitry Andric AuthorDate: 2022-07-26 11:43:46 +0000 Commit: Dimitry Andric CommitDate: 2022-07-26 17:59:55 +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 --- 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;