From: Collin Funk Date: Mon, 17 Nov 2025 00:59:43 +0000 (-0800) Subject: maint: convert remove a K&R declaration X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6cbb7f0dbbdd684aa92b8014fade5835624cea1f;p=thirdparty%2Fcoreutils.git maint: convert remove a K&R declaration This function is hidden unless EVAL_TRACE is defined for debugging. * src/expr.c (trace): Convert to a prototype instead of K&R definition to avoid -Werror=strict-prototypes. Make the argument const to avoid -Werror=discarded-qualifiers. --- diff --git a/src/expr.c b/src/expr.c index 17a1ddd299..980f8e5188 100644 --- a/src/expr.c +++ b/src/expr.c @@ -552,8 +552,7 @@ require_more_args (void) /* Print evaluation trace and args remaining. */ static void -trace (fxn) - char *fxn; +trace (char const *fxn) { char **a;