From nobody Mon Sep 30 03:36:09 2024 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 4XH6DT6CvNz5XfTC; Mon, 30 Sep 2024 03:36:09 +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 "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4XH6DT3Mt3z43cx; Mon, 30 Sep 2024 03:36:09 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1727667369; 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=3tX3SgfAMnNHXwUFCbNJzAtCmG/+yv2d/IPWCbW6T08=; b=DBJB8RgVEUoE3sXDJbobBuDGsVzKrcbnILD/7aMLJ8DGAmp1lXORLoJvAzeU3+PXHyTNd0 BcjJOSUgJXO2C1CE9ORsh6Y082g8NeEtszT55LBOIt1zqGZ2UT6pJXyhIVjBtWsFS1BlWH dalXTlJIgwcFVRGzUcaIdd3RQ1K0eCK5ZG0gYjkAoKGcAh0lAQObeYxXk/z/VcMi9gzd4B UPVt0U3hZLCUM9Gd4ht2rFbq05aQTAvFJHytbQHt77Nagtofwz+u0Z+FdapTQxDU5UgHWX yU+8gVYP9LOq2GxSbKmXfrJPXpGqFyJKyScsWlEhE9UFRoB1En92/D+mQ9SdCg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1727667369; 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=3tX3SgfAMnNHXwUFCbNJzAtCmG/+yv2d/IPWCbW6T08=; b=ec4CvrCTU3cHAHB7f0mDpJo8jRnJH0hGi8eIOZTB5NFjOXOhSePnjyoKujuguzTmSkQXNV PsyeSeKUq0EaZOxFOrW2yHbSdIeLYrnl45GqwxP3AtCz0f5wo9ECSrWt8feSqRgOssXOQT +UHK5tS4gwbYbT5J8BjRSwR867ElELguABLuZtYgSQqFNIQPMMLU3qbfx0yS28syAslZjh lG5xn4TOuB2dtKuj2a6OxX9hS3ZYDSB/mvdRw7feCKl7GTqCjpLTPnEvRkCdlN/XMz2ZsX Lgh28ciFDMxU3rt0xogXDMg/L+QZy77BeBs0IFJuoZvHIHECZXjJtqUNOjqx4Q== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1727667369; a=rsa-sha256; cv=none; b=jSBu5miYBcO+X7MZX6TfvsN04FQXeoF3VBuhg7CdOpBRj2qz3ghjIg//5US6lP6tZT1lmc 8hj0J1jOqevcJQsK67bDWd1S9JGOc0k3g/udGL7oLpiuH9cT8/G6F20Y6zyfGU+7JnVM4i jnh/LyhzkL8K3V7PK+Re4UrYI8EvlfZc958vRdfZxhm5zHGOKy4zf4wlFnrgErY5CXHyN9 vOfTVwyioyJqHLWvBDYBaXjMqiVhKALbtm20Ld7ocYfi9Rb1GVQ4W9qB0nu5EQ1VR3VvZ1 scFykWxy8zv3/qNxvTFnCdSJ+iiDEdoI+4S5vDLZ7tIJ6pOBzN1ZkKX7SCv0Mw== 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 4XH6DT2YhWzcjM; Mon, 30 Sep 2024 03:36:09 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 48U3a9se067156; Mon, 30 Sep 2024 03:36:09 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 48U3a9rR067153; Mon, 30 Sep 2024 03:36:09 GMT (envelope-from git) Date: Mon, 30 Sep 2024 03:36:09 GMT Message-Id: <202409300336.48U3a9rR067153@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Kyle Evans Subject: git: 01112a1711f3 - main - libmd: tests: raise WARNS to the default 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: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: kevans X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 01112a1711f3b7f329d84f7946ee0b8cdd1872c9 Auto-Submitted: auto-generated The branch main has been updated by kevans: URL: https://cgit.FreeBSD.org/src/commit/?id=01112a1711f3b7f329d84f7946ee0b8cdd1872c9 commit 01112a1711f3b7f329d84f7946ee0b8cdd1872c9 Author: Kyle Evans AuthorDate: 2022-03-08 17:20:09 +0000 Commit: Kyle Evans CommitDate: 2024-09-30 03:34:20 +0000 libmd: tests: raise WARNS to the default The drivers just had a small issue, passing a literal string as non-const. Fix it and lift WARNS. PR: 280784 (exp-run) Reviewed by: delphij, emaste Differential Revision: https://reviews.freebsd.org/D34501 --- lib/libmd/tests/Makefile | 3 --- lib/libmd/tests/mddriver.c | 4 ++-- lib/libmd/tests/rmddriver.c | 4 ++-- lib/libmd/tests/shadriver.c | 2 +- lib/libmd/tests/skeindriver.c | 2 +- 5 files changed, 6 insertions(+), 9 deletions(-) diff --git a/lib/libmd/tests/Makefile b/lib/libmd/tests/Makefile index fa8f2fc4f7f6..e11e8e1bf154 100644 --- a/lib/libmd/tests/Makefile +++ b/lib/libmd/tests/Makefile @@ -2,9 +2,6 @@ PACKAGE= tests -# XXX -WARNS= 0 - ATF_TESTS_SH= libmd_test MDTESTS= md rmd sha skein diff --git a/lib/libmd/tests/mddriver.c b/lib/libmd/tests/mddriver.c index 47ff87663bff..1229a4e2929f 100644 --- a/lib/libmd/tests/mddriver.c +++ b/lib/libmd/tests/mddriver.c @@ -37,8 +37,8 @@ #endif /* Digests a string and prints the result. */ -static void -MDString(char *string) +static void +MDString(const char *string) { char buf[33]; diff --git a/lib/libmd/tests/rmddriver.c b/lib/libmd/tests/rmddriver.c index 3c37c2866bfd..50227dcffb5d 100644 --- a/lib/libmd/tests/rmddriver.c +++ b/lib/libmd/tests/rmddriver.c @@ -20,8 +20,8 @@ #include "ripemd.h" /* Digests a string and prints the result. */ -static void -RIPEMD160String(char *string) +static void +RIPEMD160String(const char *string) { char buf[2*20 + 1]; diff --git a/lib/libmd/tests/shadriver.c b/lib/libmd/tests/shadriver.c index 42d57ed2016f..85cb21185bc8 100644 --- a/lib/libmd/tests/shadriver.c +++ b/lib/libmd/tests/shadriver.c @@ -58,7 +58,7 @@ /* Digests a string and prints the result. */ static void -SHAString(char *string) +SHAString(const char *string) { char buf[2*64 + 1]; diff --git a/lib/libmd/tests/skeindriver.c b/lib/libmd/tests/skeindriver.c index 874f0c17e500..a28ac8fc2c2a 100644 --- a/lib/libmd/tests/skeindriver.c +++ b/lib/libmd/tests/skeindriver.c @@ -41,7 +41,7 @@ /* Digests a string and prints the result. */ static void -SKEINString(char *string) +SKEINString(const char *string) { char buf[2*128 + 1];