From nobody Mon Aug 15 18:49:29 2022 X-Original-To: dev-commits-src-main@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 4M63Gx3HDCz4YXl6; Mon, 15 Aug 2022 18:49:29 +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 4M63Gx2vf2z3CLr; Mon, 15 Aug 2022 18:49:29 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1660589369; 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=QOPRd3upLQPfPXWrxRKJhecnuMhN9b7hGKMkP/fzL+k=; b=qHSIuXdWgibNxvkpgjC/GmJoNIu8ICXlUsNmo/zcL1jyZH/LzoJbVOn9Fk9CfzjZoY6A3h Z7sz0pbyBJbmphuktQyOeFfOXeRmHJZYJlDpwgH094kHYcgylbC4KVY4V5MBXCX/x7OktZ AfeobRWrbBDt+tITJkZBL2TrYk1USpOVtGIYBHaV/7+gFiInCYCaXNujJ0dUnFNHE7wjoq HXhjPNVkUkszNCPqd263Htda5UPIkXLEQ6D1ULciJl6ns85jBKofQJI94LGEGfpVlrmsUR EwKGGmXhw9D1nRn692RLhMzX2Pch3ciTCLU88EUfYlnctNU4I+7HVc/l5v1vEA== 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 4M63Gx1y2Bzg8X; Mon, 15 Aug 2022 18:49:29 +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 27FInTtQ027908; Mon, 15 Aug 2022 18:49:29 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 27FInTmo027907; Mon, 15 Aug 2022 18:49:29 GMT (envelope-from git) Date: Mon, 15 Aug 2022 18:49:29 GMT Message-Id: <202208151849.27FInTmo027907@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: da36b5d24441 - main - Adjust function definition in riscv's db_trace.c to avoid clang 15 warning List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-main@freebsd.org X-BeenThere: dev-commits-src-main@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: da36b5d244419fdc137e0cce50bf021e8c46c822 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1660589369; 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=QOPRd3upLQPfPXWrxRKJhecnuMhN9b7hGKMkP/fzL+k=; b=Dhct76hoHDGHbsAmwcparFUwXtE6Ef1kaqjLD+R2fM6uynllwmgjWMkJN4Jz5Fr8AYaofb kZs8dU+dAx0RalG4dCkUSvwcbui18p+FlMSVoOLYPFojgxBlz2iPkzEgsup0Y8qEdQktmr y37XeRlu8SWn/1n9gUmX+6tu6dVtPeGKW1vy9Q+PvTFBTJobQ/S7wLUBww2a2BQl1okcGN fbB4AtrL3QUCP50foN0orC4Np+ofI6EuIoMUhoOnffaA949tZO0R/mvgJH2srPcgFQbOu9 Ylfd4j+f/cZpeoYvT+A+xeIhSU/GUsOx5Eh/ZypAuwbmUdqTP6Ila9CPhqNaCg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1660589369; a=rsa-sha256; cv=none; b=E4c7PuaVvc0DquTHmEZrntolXFXbHtUjaHefaKZjfSpnX3QuFp4IigjpzfqZBcFEKEmAlD +VBu46riS5jPBdbE2DwlodgK4rO/mRC0hX3P4mimaB1tt0FYsyrMkm3tQizlDZclGdfQcE fsFXsThpHXhy9Ol699LP55oVL6Nd71/tQDdIlXIFGpIKdWlwdhj7pBTYLgqU4X9xCcQgQQ oZpf66uIqnyu7jpYb9tynMAHWOOYUy9oQ+EmOGLf4ZKfU0cC/US5U0fyEMG4/ddh5UxZXn aXFFMTHObEqeKUP1zJxz8Pl2BEKr/L+3MrFyIEXE866Kf/eyswVI4MDWo2e2gw== 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=da36b5d244419fdc137e0cce50bf021e8c46c822 commit da36b5d244419fdc137e0cce50bf021e8c46c822 Author: Dimitry Andric AuthorDate: 2022-08-15 18:48:17 +0000 Commit: Dimitry Andric CommitDate: 2022-08-15 18:48:35 +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 --- 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 dbc2ba92bce3..56508464e7c6 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) { }