git: 6cc4a1c3205a - main - Fix build with gcc12.

From: Xin LI <delphij_at_FreeBSD.org>
Date: Wed, 14 Jun 2023 03:24:31 UTC
The branch main has been updated by delphij:

URL: https://cgit.FreeBSD.org/src/commit/?id=6cc4a1c3205a7624846c2c84a7d829aeb208a138

commit 6cc4a1c3205a7624846c2c84a7d829aeb208a138
Author:     Xin LI <delphij@FreeBSD.org>
AuthorDate: 2023-06-14 03:24:07 +0000
Commit:     Xin LI <delphij@FreeBSD.org>
CommitDate: 2023-06-14 03:24:07 +0000

    Fix build with gcc12.
---
 lib/libutil/tests/expand_number_test.c | 13 ++++++-------
 1 file changed, 6 insertions(+), 7 deletions(-)

diff --git a/lib/libutil/tests/expand_number_test.c b/lib/libutil/tests/expand_number_test.c
index 319df26c9621..42e3170ac4cf 100644
--- a/lib/libutil/tests/expand_number_test.c
+++ b/lib/libutil/tests/expand_number_test.c
@@ -68,15 +68,14 @@ ATF_TC_BODY(positivetests, tc)
 ATF_TC_WITHOUT_HEAD(negativetests);
 ATF_TC_BODY(negativetests, tc)
 {
-	int retval;
 	uint64_t num;
 
-	ATF_CHECK_ERRNO(EINVAL, retval = expand_number("", &num));
-	ATF_CHECK_ERRNO(EINVAL, retval = expand_number("x", &num));
-	ATF_CHECK_ERRNO(EINVAL, retval = expand_number("1bb", &num));
-	ATF_CHECK_ERRNO(EINVAL, retval = expand_number("1x", &num));
-	ATF_CHECK_ERRNO(EINVAL, retval = expand_number("1kx", &num));
-	ATF_CHECK_ERRNO(ERANGE, retval = expand_number("16E", &num));
+	ATF_CHECK_ERRNO(EINVAL, expand_number("", &num));
+	ATF_CHECK_ERRNO(EINVAL, expand_number("x", &num));
+	ATF_CHECK_ERRNO(EINVAL, expand_number("1bb", &num));
+	ATF_CHECK_ERRNO(EINVAL, expand_number("1x", &num));
+	ATF_CHECK_ERRNO(EINVAL, expand_number("1kx", &num));
+	ATF_CHECK_ERRNO(ERANGE, expand_number("16E", &num));
 }
 
 ATF_TP_ADD_TCS(tp)