Changeset 278


Ignore:
Timestamp:
Nov 2, 2009, 3:24:21 PM (16 years ago)
Author:
Dmitry A. Kuminov
Message:

3rdparty: os2/xsystray: Warnings.

Location:
trunk/src/3rdparty/os2/xsystray
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/3rdparty/os2/xsystray/xsystray.c

    r275 r278  
    431431            // advance the address (only if nobody has already done so -- they
    432432            // could already commit more than we did)
    433             __atomic_cmpxchg32((uint32_t *)&pHdr->ulNeedsCommit,
     433            __atomic_cmpxchg32((uint32_t *)&pHdr->ulNeedsCommit,
    434434                               ulNeedsCommit + 4096, ulNeedsCommit);
    435435        }
    436436
    437         if (__atomic_cmpxchg32((uint32_t *)ulCurr, pIconData->hwnd, NULLHANDLE))
     437        if (__atomic_cmpxchg32((volatile uint32_t *)ulCurr,
     438                               pIconData->hwnd, NULLHANDLE))
    438439            break;
    439440
     
    460461
    461462    // store the new next address until someone else has already done that
    462     __atomic_cmpxchg32((uint32_t *)&pHdr->ulNext, ulCurr, ulNext);
     463    __atomic_cmpxchg32((uint32_t *)&pHdr->ulNext, ulCurr, ulNext);
    463464
    464465    // fill in parts of the allocated NOTIFYDATA
  • trunk/src/3rdparty/os2/xsystray/xsystray_api.c

    r276 r278  
    8888            bTriedFind = TRUE;
    8989            HWND hwnd = FindSysTrayServerWindow();
    90             __atomic_cmpxchg32((uint32_t *)&G_hwndSysTray, hwnd, NULLHANDLE);
     90            __atomic_cmpxchg32((volatile uint32_t *)&G_hwndSysTray,
     91                               hwnd, NULLHANDLE);
    9192            if (G_hwndSysTray == NULLHANDLE)
    9293                break;
     
    148149                               DOSSUB_INIT | DOSSUB_SPARSE_OBJ,
    149150                               CLIENT_MEMORYPOOL_SIZE);
    150         if (!__atomic_cmpxchg32((uint32_t *)&G_pvMemoryPool,
     151        if (!__atomic_cmpxchg32((uint32_t *)&G_pvMemoryPool,
    151152                                (uint32_t)pvPool, (uint32_t)NULL))
    152153        {
Note: See TracChangeset for help on using the changeset viewer.