Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 3 Jan 2018 23:58:14 +0000 (UTC)
From:      Jeff Roberson <jeff@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-user@freebsd.org
Subject:   svn commit: r327532 - user/jeff/numa/usr.bin/cpuset
Message-ID:  <201801032358.w03NwESv041598@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: jeff
Date: Wed Jan  3 23:58:13 2018
New Revision: 327532
URL: https://svnweb.freebsd.org/changeset/base/327532

Log:
  Gcc is not smart enough to see that policy is not used before
  initialization.  Set a nonsense default value.

Modified:
  user/jeff/numa/usr.bin/cpuset/cpuset.c

Modified: user/jeff/numa/usr.bin/cpuset/cpuset.c
==============================================================================
--- user/jeff/numa/usr.bin/cpuset/cpuset.c	Wed Jan  3 23:57:41 2018	(r327531)
+++ user/jeff/numa/usr.bin/cpuset/cpuset.c	Wed Jan  3 23:58:13 2018	(r327532)
@@ -292,6 +292,7 @@ main(int argc, char *argv[])
 
 	CPU_ZERO(&mask);
 	DOMAINSET_ZERO(&domains);
+	policy = DOMAINSET_POLICY_INVALID;
 	level = CPU_LEVEL_WHICH;
 	which = CPU_WHICH_PID;
 	id = pid = tid = setid = -1;



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