There is some slightly naughty code in hthreads.c which assumes that a thread-id and an int are the same thing, causing a compiler warning on platforms where this is not necessarily the case. The following seems to work around the issue:
line 1072:
tid = (TID) -1;
line 1125:
|| (equal_threads( tid, (TID) -1 ) && !equal_threads( ilk[i].tid, 0 ))
There is some slightly naughty code in hthreads.c which assumes that a thread-id and an int are the same thing, causing a compiler warning on platforms where this is not necessarily the case. The following seems to work around the issue:
line 1072:
tid = (TID) -1;
line 1125:|| (equal_threads( tid, (TID) -1 ) && !equal_threads( ilk[i].tid, 0 ))