svn commit: r347426 - head/tests/sys/sys

Edward Tomasz Napierala trasz at FreeBSD.org
Fri May 10 08:16:30 UTC 2019


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");


More information about the svn-src-head mailing list