From nobody Sun Aug 21 11:29:45 2022 X-Original-To: dev-commits-src-branches@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 4M9YDn4tlKz4ZYt1; Sun, 21 Aug 2022 11:29:45 +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 4M9YDn4LW9z40gN; Sun, 21 Aug 2022 11:29:45 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1661081385; 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=3tndHcvqbYRuElF1jK6zk1OlGMmn3iHj7H8MhgYXYhU=; b=edtF6l2lVURKg0vz4nFdD3uU/1q9kn2jPVSHwHbMtP47hcXhuwtpHZKESeXR0J5fbgFrmt bTlz+diYDHr1jWAiSvlLcZvlT0CW0dLAKUgkIVfQJ0hdIZW7E5SlvXBanRMunD24VP8EjW j+pzbL7fJrArSYPmad1w1B0Mc15/N0avQqdr4WIFweSuoxgOs2Oj33CCXWUftPiGT/SDp2 FUmoIEJ/fsZ4Wa4s84DvoOGyL/AFO4aZ3g+bo+Zc8Yv+fS8QIGUOC7xa8HLV1tc2WlbLtw gEOFV5uAQAcn1Loi2xBXC4Ae2TC4ktA0zBPwg30zqN7zujM0GjpZaNFqp9fq8Q== 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 4M9YDn3SLVz17s5; Sun, 21 Aug 2022 11:29:45 +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 27LBTjix005324; Sun, 21 Aug 2022 11:29:45 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 27LBTj0G005323; Sun, 21 Aug 2022 11:29:45 GMT (envelope-from git) Date: Sun, 21 Aug 2022 11:29:45 GMT Message-Id: <202208211129.27LBTj0G005323@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: e0229df69964 - stable/12 - Adjust function definition in riscv's db_trace.c to avoid clang 15 warning List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-branches@freebsd.org X-BeenThere: dev-commits-src-branches@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: e0229df69964e35a8d352402e2a944bba25f3b42 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1661081385; 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=3tndHcvqbYRuElF1jK6zk1OlGMmn3iHj7H8MhgYXYhU=; b=oDj7q13tz4YAfv+f0coiCvubZcv0MFOfrPAJeu6sy4hIRVVpQd6Q7HUfznmrQCvTOBSVuD 8u0Qt5KbbfonhYXinUu5PgxAnohcWSWueiZCBBNioF9vLFUcH26TI7QL9qUO6aLT0Tu6Hv 0Wli5WumAgT+fOFaQAz2FniogHBk3sfvMNJHDi0rET38BAuetbEM/Ds8RvJUDkmk+55t41 gBhqD/6CE4/9M6HbDcL5l5jT6Euls0wTwWfKmg1Al1fyrEB6lOy0HlvhYIfLkfaXrhWqdb Hq7aaq52BeoTdWM6qWee0u2IkuIUk1ZmpE46c0RnwiBv+Pi9+gkfapazk7hCDg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1661081385; a=rsa-sha256; cv=none; b=Ax8VPUWU0Xw1V83A4j1J/vrFWSroTK6AVOQmxGcskfAwSdRoXQiC1S+FK0Ep675FqVd12i BRVVCf9jY0iqi0vEIJqsZ/V7HuYPuIqbHU1/DwJGlKeUiSHAK5QXz/0UmjAqS2jsQF8eH0 kkRnAinDMRq1NbYa0B7b8QQM0ujaEFOBFjB8lj07q2i1pF68ep8Bs/sZ1bfd5GrkftfI6b j3BIjVaQ5IkJnUDh4UEm/12Cs9r+m9RjUVnKQMAeFdRTgw1yliblFqb2dr69vDqbDM5Q5q jD1SSlQ1GSAoEi27xMS7zk/A2RGqcavCiQ2Qh3T10VwYwBdzprDOvVdKKcF/3w== 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=e0229df69964e35a8d352402e2a944bba25f3b42 commit e0229df69964e35a8d352402e2a944bba25f3b42 Author: Dimitry Andric AuthorDate: 2022-08-15 18:48:17 +0000 Commit: Dimitry Andric CommitDate: 2022-08-21 11:27:27 +0000 Adjust function definition in riscv's db_trace.c to avoid clang 15 warning With clang 15, the following -Werror warning is produced: sys/riscv/riscv/db_trace.c:56:23: error: a function declaration without a prototype is deprecated in all versions of C [-Werror,-Wstrict-prototypes] db_md_list_watchpoints() ^ void This is because db_md_list_watchpoints() 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 da36b5d244419fdc137e0cce50bf021e8c46c822) --- sys/riscv/riscv/db_trace.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/riscv/riscv/db_trace.c b/sys/riscv/riscv/db_trace.c index 2a783b2ed0f0..96f667ae2e24 100644 --- a/sys/riscv/riscv/db_trace.c +++ b/sys/riscv/riscv/db_trace.c @@ -53,7 +53,7 @@ __FBSDID("$FreeBSD$"); #include void -db_md_list_watchpoints() +db_md_list_watchpoints(void) { }