Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 10 May 2019 08:16:29 +0000 (UTC)
From:      Edward Tomasz Napierala <trasz@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r347426 - head/tests/sys/sys
Message-ID:  <201905100816.x4A8GTgZ019602@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: trasz
Date: Fri May 10 08:16:29 2019
New Revision: 347426
URL: https://svnweb.freebsd.org/changeset/base/347426

Log:
  Try to unbreak the build after r347425.
  
  MFC after:	2 weeks

Modified:
  head/tests/sys/sys/rb_test.c
  head/tests/sys/sys/splay_test.c

Modified: head/tests/sys/sys/rb_test.c
==============================================================================
--- head/tests/sys/sys/rb_test.c	Fri May 10 07:46:14 2019	(r347425)
+++ head/tests/sys/sys/rb_test.c	Fri May 10 08:16:29 2019	(r347426)
@@ -63,6 +63,8 @@ ATF_TC_BODY(rb_test, tc)
 	struct node *tmp, *ins;
 	int i, max, min;
 
+	max = min = 42; /* pacify gcc */
+
 	RB_INIT(&root);
 
 	for (i = 0; i < ITER; i++) {

Modified: head/tests/sys/sys/splay_test.c
==============================================================================
--- head/tests/sys/sys/splay_test.c	Fri May 10 07:46:14 2019	(r347425)
+++ head/tests/sys/sys/splay_test.c	Fri May 10 08:16:29 2019	(r347426)
@@ -65,6 +65,8 @@ ATF_TC_BODY(splay_test, tc)
 
 	SPLAY_INIT(&root);
 
+	max = min = 42; /* pacify gcc */
+
 	for (i = 0; i < ITER; i++) {
 		tmp = malloc(sizeof(struct node));
 		ATF_CHECK_MSG(tmp != NULL, "malloc failed");



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201905100816.x4A8GTgZ019602>