Wrong assignment in ListRemoveInner
Closed / Wont Fix1073161fffffffffffffffffffffffffffffffffCreated 22 years agoUpdated 22 years ago
Descriptionplain2004-11-25 13:33:31
[email protected] During compilation of Thread 2.5.2 i saw a compiler warning in procedure 'ListRemoveInner'. Test for equality where an assignment is expected - I believe. Code follows: static void ListRemoveInner(tsdPtr) ThreadSpecificData *tsdPtr; { if (tsdPtr->prevPtr || tsdPtr->nextPtr) { if (tsdPtr->prevPtr) { tsdPtr->prevPtr->nextPtr = tsdPtr->nextPtr; } else { threadList = tsdPtr->nextPtr; } if (tsdPtr->nextPtr) { tsdPtr->nextPtr->prevPtr = tsdPtr->prevPtr; } tsdPtr->nextPtr = NULL; tsdPtr->prevPtr = NULL; } else if (tsdPtr == threadList) { threadList == NULL; } } The last statement should read (IMHO): threadList = NULL;
dkf Ticket [1073161fff]: 1 change
[History diff]2004-11-25 21:59:44
vasiljevicplain2004-11-25 22:24:00
Logged In: YES user_id=95086 This has been fixed in CVS head and the 2.6 release of the threading extension should be out together with the 8.4.9 core. Therefore, I will close this item and mark it "Wont Fix".
Log in (anonymous is fine) to add a comment.