VirtualBox

Changeset 39083 in vbox for trunk/src/VBox/Runtime/r3/posix


Ignore:
Timestamp:
Oct 22, 2011 12:28:46 AM (13 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
74515
Message:

IPRT: -Wunused-parameter.

Location:
trunk/src/VBox/Runtime/r3/posix
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/r3/posix/dir-posix.cpp

    r36167 r39083  
    196196int rtDirNativeOpen(PRTDIR pDir, char *pszPathBuf)
    197197{
     198    NOREF(pszPathBuf); /* only used on windows */
     199
    198200    /*
    199201     * Convert to a native path and try opendir.
  • trunk/src/VBox/Runtime/r3/posix/fileaio-posix.cpp

    r37596 r39083  
    579579    if (hAioCtx == NIL_RTFILEAIOCTX)
    580580        return RTFILEAIO_UNLIMITED_REQS;
    581     else
    582         return pCtxInt->cMaxRequests;
     581    return pCtxInt->cMaxRequests;
    583582}
    584583
    585584RTDECL(int) RTFileAioCtxAssociateWithFile(RTFILEAIOCTX hAioCtx, RTFILE hFile)
    586585{
     586    NOREF(hAioCtx); NOREF(hFile);
    587587    return VINF_SUCCESS;
    588588}
  • trunk/src/VBox/Runtime/r3/posix/fileio-posix.cpp

    r39030 r39083  
    686686RTR3DECL(int) RTFileIoCtl(RTFILE hFile, unsigned long ulRequest, void *pvData, unsigned cbData, int *piRet)
    687687{
     688    NOREF(cbData);
    688689    int rc = ioctl(RTFileToNative(hFile), ulRequest, pvData);
    689690    if (piRet)
  • trunk/src/VBox/Runtime/r3/posix/fileio2-posix.cpp

    r37596 r39083  
    135135                             PCRTTIMESPEC pChangeTime, PCRTTIMESPEC pBirthTime)
    136136{
     137    NOREF(pChangeTime); NOREF(pBirthTime);
     138
    137139    /*
    138140     * We can only set AccessTime and ModificationTime, so if neither
  • trunk/src/VBox/Runtime/r3/posix/process-creation-posix.cpp

    r39032 r39083  
    8585 * @returns IPRT status code
    8686 */
    87 static int rtCheckCredentials(const char *pszUser, const char *pszPasswd, gid_t *gid, uid_t *uid)
     87static int rtCheckCredentials(const char *pszUser, const char *pszPasswd, gid_t *pGid, uid_t *pUid)
    8888{
    8989#if defined(RT_OS_LINUX)
     
    111111        return VERR_PERMISSION_DENIED;
    112112
    113     *gid = pw->pw_gid;
    114     *uid = pw->pw_uid;
     113    *pGid = pw->pw_gid;
     114    *pUid = pw->pw_uid;
    115115    return VINF_SUCCESS;
    116116
     
    135135        return VERR_PERMISSION_DENIED;
    136136
    137     *gid = ppw->pw_gid;
    138     *uid = ppw->pw_uid;
     137    *pGid = ppw->pw_gid;
     138    *pUid = ppw->pw_uid;
    139139    return VINF_SUCCESS;
    140140
    141141#else
     142    NOREF(pszUser); NOREF(pszPasswd); NOREF(pGid); NOREF(pUid);
    142143    return VERR_PERMISSION_DENIED;
    143144#endif
  • trunk/src/VBox/Runtime/r3/posix/rtmempage-exec-mmap-heap-posix.cpp

    r33279 r39083  
    175175
    176176/**
    177  * Deletes the heap an all the memory it tracks.
     177 * Deletes the heap and all the memory it tracks.
    178178 *
    179179 * @returns IPRT status code.
     
    182182int RTHeapPageDelete(PRTHEAPPAGE pHeap)
    183183{
     184    NOREF(pHeap);
    184185    return VERR_NOT_IMPLEMENTED;
    185186}
     
    312313{
    313314    int rc;
     315    NOREF(pszTag);
    314316
    315317    /*
     
    564566static DECLCALLBACK(int) rtMemPagePosixInitOnce(void *pvUser1, void *pvUser2)
    565567{
     568    NOREF(pvUser1); NOREF(pvUser2);
    566569    int rc = RTHeapPageInit(&g_MemPagePosixHeap, false /*fExec*/);
    567570    if (RT_SUCCESS(rc))
  • trunk/src/VBox/Runtime/r3/posix/semeventmulti-posix.cpp

    r33540 r39083  
    429429#endif
    430430        RTThreadBlocking(hThreadSelf, RTTHREADSTATE_EVENT_MULTI, true);
     431        /** @todo interruptible wait is not implementable... */ NOREF(fFlags);
    431432        rc = pthread_cond_wait(&pThis->Cond, &pThis->Mutex);
    432433        RTThreadUnblocked(hThreadSelf, RTTHREADSTATE_EVENT_MULTI);
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette