From nobody Sat Jul 23 08:58:18 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 4LqgFQ51Nbz4X72W; Sat, 23 Jul 2022 08:58:18 +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 4LqgFQ3r1Xz3cxL; Sat, 23 Jul 2022 08:58:18 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1658566698; 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=TcIpooTwKZxveXud1g/QADbcV+k0ygdyqpo+QmmNyAI=; b=ftYn22NCQZ68GqPubLSSk4Un6Y83PeKsqwrI1b3Z0jDjldydxDoaenAExRy3ke/s06UJga aEkbNI7aPfvTCkmsM8TraM6fLYf4UalcJPZdr2RRvgqfltdQ+3vijsS89M43vJo+CeopG1 /tusVgXvwjR/rBd045vMLjBD8DDcqFhwIaW7WPc5Fi6desWkHsCJK5Yc1Odes4/4oLRRy4 FvoAqw1OIsPu9AGk1Tm20wr9NVvQQMbfIbZvQdKFtsM9rvxT98ZCEcw2lGHvX6H4kADGfp CBoZ4sfunxMI0P+3Tnnq8j5Eo1DZ3HS/I6Os+hCxhs/dXBN87oioTgDkT8dnHw== 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 4LqgFQ2jYKzYqm; Sat, 23 Jul 2022 08:58:18 +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 26N8wIDM012633; Sat, 23 Jul 2022 08:58:18 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 26N8wI73012632; Sat, 23 Jul 2022 08:58:18 GMT (envelope-from git) Date: Sat, 23 Jul 2022 08:58:18 GMT Message-Id: <202207230858.26N8wI73012632@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: 08c55de237ed - stable/13 - Adjust db_flush_line() 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: 08c55de237ed0067781981ef4704480938186104 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1658566698; 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=TcIpooTwKZxveXud1g/QADbcV+k0ygdyqpo+QmmNyAI=; b=SY0QMxrk41JZA5gdkOaF9AW8+D1BX4bNW9dZF5umZxf6OPMfWfjPVbMEeL6rHju4Zp+p03 nJsI2ej/7jqggH32FV/jbYPI2xvqmRnsawCcOJTNU2TilXAND6jINKPgqN11/z/I270Pqo JxC9qmrxu5fqFPhFbNYen5LXufMZ07mKtJxoPDi9jLYp61PE6FOismXLOYiZrlwwTM5AfJ 4oN49lcuziKf8zIio1mi84Chz/XTb/HkKcXAzo0v2vOiQz4EbF+QGPw0v3wDaXwhNRfLYy ExrjUObvkAXz1VOD535iCgTIFFSVaaaaQbS2mUPI3xUKkpFM7HWktH2lAKVYvw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1658566698; a=rsa-sha256; cv=none; b=qQsvMnPzkDVswCNIavrd2XYXqTikOjWbtrlKemAILXOIZ28xCBEHdHbcb4St/uqIx/bHd4 qOvnvydwUf0eWPtDIhAxIwb0S4xx2+Mi7lZVvJQgImLtkQXlBox/DWOyBX5zY1QX1rIMoc AoKB4qMkNb+I9K0T0V/Bg45jOooF+sRSQloq81IwWQhHIXjvssNHvJgFNTQ1chMnz4BwIx n+p2e6EJ+C2QdPvaRJ0Cck5sF0MIYK67SI7GB2ESdeaCpF6ruQ+CIL0I3S4jCamaxChMyl 7IAfL+FPHx+v2CI5OBolPiWRON5Fqzg5ri3fvPw5sQwF/765jRsKIIYNXsIjtg== 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=08c55de237ed0067781981ef4704480938186104 commit 08c55de237ed0067781981ef4704480938186104 Author: Dimitry Andric AuthorDate: 2022-07-19 18:31:08 +0000 Commit: Dimitry Andric CommitDate: 2022-07-23 08:56:44 +0000 Adjust db_flush_line() definition to avoid clang 15 warning With clang 15, the following -Werror warnings is produced: sys/ddb/db_lex.c:94:14: error: a function declaration without a prototype is deprecated in all versions of C [-Werror,-Wstrict-prototypes] db_flush_line() ^ void This is because db_flush_line() 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 939cb349b2ca4d3fcdc72ab1258eadee5e54881c) --- sys/ddb/db_lex.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/ddb/db_lex.c b/sys/ddb/db_lex.c index 457790ee8605..093afa2238b6 100644 --- a/sys/ddb/db_lex.c +++ b/sys/ddb/db_lex.c @@ -91,7 +91,7 @@ db_get_line(void) } static void -db_flush_line() +db_flush_line(void) { db_lp = db_line; db_endlp = db_line;