Quiet warning about assigning NULL to an int
authorPhil Miller <mille121@illinois.edu>
Wed, 4 May 2011 23:58:53 +0000 (18:58 -0500)
committerPhil Miller <mille121@illinois.edu>
Wed, 4 May 2011 23:58:53 +0000 (18:58 -0500)
CmiNodeLock is a pointer in some settings, and int in others. Instead
of initializing it with NULL, assign 0 instead, which works as a
pointer or an integer.

src/conv-core/cpuaffinity.c

index 675d04e43d2ad1a2581991f5872c3e75debb17f4..a23a6d0ff4357e95b208889027fe21c8ad5fe272 100644 (file)
@@ -323,7 +323,7 @@ typedef struct _rankMsg {
 
 static rankMsg *rankmsg = NULL;
 static CmmTable hostTable;
-static CmiNodeLock affLock = NULL;
+static CmiNodeLock affLock = 0;
 
 /* called on PE 0 */
 static void cpuAffinityHandler(void *m)