VirtualBox

Changeset 63509 in vbox for trunk


Ignore:
Timestamp:
Aug 15, 2016 10:54:50 PM (8 years ago)
Author:
vboxsync
Message:

IPRT: warnings (clang)

Location:
trunk/src/VBox/Runtime
Files:
10 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/common/log/log.cpp

    r62566 r63509  
    359359};
    360360
     361#ifdef IN_RING3
    361362/** Log rotation backoff table - millisecond sleep intervals.
    362363 * Important on Windows host, especially for VBoxSVC release logging.  Only a
     
    366367static const uint32_t g_acMsLogBackoff[] =
    367368{ 10, 10, 10, 20, 50, 100, 200, 200, 200, 200, 500, 500, 500, 500, 1000, 1000, 1000, 1000, 1000, 1000, 1000 };
     369#endif
    368370
    369371
  • trunk/src/VBox/Runtime/generic/RTMpOnPair-generic.cpp

    r62477 r63509  
    6464static DECLCALLBACK(void) rtMpOnPairGenericWorker(RTCPUID idCpu, void *pvUser1, void *pvUser2)
    6565{
     66    RT_NOREF(pvUser2);
    6667    PRTMPONPAIRGENERIC pArgs = (PRTMPONPAIRGENERIC)pvUser1;
    6768
  • trunk/src/VBox/Runtime/r0drv/darwin/memuserkernel-r0drv-darwin.cpp

    r62477 r63509  
    106106RTR0DECL(int) RTR0MemKernelCopyFrom(void *pvDst, void const *pvSrc, size_t cb)
    107107{
     108    RT_NOREF(pvDst, pvSrc, cb);
    108109    return VERR_NOT_SUPPORTED;
    109110}
     
    112113RTR0DECL(int) RTR0MemKernelCopyTo(void *pvDst, void const *pvSrc, size_t cb)
    113114{
     115    RT_NOREF(pvDst, pvSrc, cb);
    114116    return VERR_NOT_SUPPORTED;
    115117}
  • trunk/src/VBox/Runtime/r0drv/darwin/mp-r0drv-darwin.cpp

    r62477 r63509  
    164164{
    165165    /** @todo darwin R0 MP (rainy day) */
     166    RT_NOREF(idCpu);
    166167    return 0;
    167168}
     
    171172{
    172173    /** @todo darwin R0 MP (rainy day) */
     174    RT_NOREF(idCpu);
    173175    return 0;
    174176}
  • trunk/src/VBox/Runtime/r0drv/darwin/semevent-r0drv-darwin.cpp

    r62477 r63509  
    9696RTDECL(int)  RTSemEventCreateEx(PRTSEMEVENT phEventSem, uint32_t fFlags, RTLOCKVALCLASS hClass, const char *pszNameFmt, ...)
    9797{
     98    RT_NOREF(hClass, pszNameFmt);
    9899    AssertCompile(sizeof(RTSEMEVENTINTERNAL) > sizeof(void *));
    99100    AssertReturn(!(fFlags & ~(RTSEMEVENT_FLAGS_NO_LOCK_VAL | RTSEMEVENT_FLAGS_BOOTSTRAP_HACK)), VERR_INVALID_PARAMETER);
     
    245246                                  PCRTLOCKVALSRCPOS pSrcPos)
    246247{
     248    RT_NOREF(pSrcPos);
     249
    247250    /*
    248251     * Validate the input.
  • trunk/src/VBox/Runtime/r0drv/darwin/semeventmulti-r0drv-darwin.cpp

    r62477 r63509  
    100100                                     const char *pszNameFmt, ...)
    101101{
     102    RT_NOREF(hClass, pszNameFmt);
    102103    AssertReturn(!(fFlags & ~RTSEMEVENTMULTI_FLAGS_NO_LOCK_VAL), VERR_INVALID_PARAMETER);
    103104    AssertCompile(sizeof(RTSEMEVENTMULTIINTERNAL) > sizeof(void *));
     
    264265                                       PCRTLOCKVALSRCPOS pSrcPos)
    265266{
     267    RT_NOREF(pSrcPos);
     268
    266269    /*
    267270     * Validate input.
  • trunk/src/VBox/Runtime/r0drv/darwin/semmutex-r0drv-darwin.cpp

    r62477 r63509  
    7979                               RTLOCKVALCLASS hClass, uint32_t uSubClass, const char *pszNameFmt, ...)
    8080{
     81    RT_NOREF(hClass, uSubClass, pszNameFmt);
    8182    AssertReturn(!(fFlags & ~RTSEMMUTEX_FLAGS_NO_LOCK_VAL), VERR_INVALID_PARAMETER);
    8283    RT_ASSERT_PREEMPTIBLE();
     
    326327RTDECL(int) RTSemMutexRequestDebug(RTSEMMUTEX hMutexSem, RTMSINTERVAL cMillies, RTHCUINTPTR uId, RT_SRC_POS_DECL)
    327328{
     329    RT_SRC_POS_NOREF(); RT_NOREF(uId);
    328330    return RTSemMutexRequest(hMutexSem, cMillies);
    329331}
     
    338340RTDECL(int) RTSemMutexRequestNoResumeDebug(RTSEMMUTEX hMutexSem, RTMSINTERVAL cMillies, RTHCUINTPTR uId, RT_SRC_POS_DECL)
    339341{
     342    RT_SRC_POS_NOREF(); RT_NOREF(uId);
    340343    return RTSemMutexRequestNoResume(hMutexSem, cMillies);
    341344}
  • trunk/src/VBox/Runtime/r0drv/darwin/the-darwin-kernel.h

    r62477 r63509  
    5252#endif
    5353
     54#if defined(__clang__) || RT_GNUC_PREREQ(4, 4)
     55# pragma GCC diagnostic push
     56#endif
     57#if defined(__clang__) || RT_GNUC_PREREQ(4, 2)
     58# pragma GCC diagnostic ignored "-Wc++11-extensions"
     59# pragma GCC diagnostic ignored "-Wc99-extensions"
     60# pragma GCC diagnostic ignored "-Wextra-semi"
     61# pragma GCC diagnostic ignored "-Wzero-length-array"
     62# pragma GCC diagnostic ignored "-Wgnu-zero-variadic-macro-arguments"
     63#endif
     64
    5465/* now we're ready for including the rest of the Darwin headers. */
    5566#include <kern/thread.h>
     
    7990#include <IOKit/IOBufferMemoryDescriptor.h>
    8091#include <IOKit/IOMapper.h>
     92
     93#if defined(__clang__) || RT_GNUC_PREREQ(4, 4)
     94# pragma GCC diagnostic pop
     95#endif
    8196
    8297
  • trunk/src/VBox/Runtime/r0drv/darwin/thread2-r0drv-darwin.cpp

    r62477 r63509  
    133133DECLHIDDEN(int) rtThreadNativeAdopt(PRTTHREADINT pThread)
    134134{
     135    RT_NOREF(pThread);
    135136    return VERR_NOT_IMPLEMENTED;
    136137}
     
    139140DECLHIDDEN(void) rtThreadNativeWaitKludge(PRTTHREADINT pThread)
    140141{
     142    RT_NOREF(pThread);
    141143    /** @todo fix RTThreadWait/RTR0Term race on darwin. */
    142144    RTThreadSleep(1);
     
    146148DECLHIDDEN(void) rtThreadNativeDestroy(PRTTHREADINT pThread)
    147149{
    148     NOREF(pThread);
     150    RT_NOREF(pThread);
    149151}
    150152
     
    160162static void rtThreadNativeMain(void *pvArg, wait_result_t Ignored)
    161163{
     164    RT_NOREF(Ignored);
    162165    const thread_t Self = current_thread();
    163166    PRTTHREADINT pThread = (PRTTHREADINT)pvArg;
  • trunk/src/VBox/Runtime/r0drv/darwin/threadpreempt-r0drv-darwin.cpp

    r62477 r63509  
    111111RTDECL(bool) RTThreadPreemptIsPending(RTTHREAD hThread)
    112112{
     113    RT_NOREF(hThread);
    113114    if (!g_pfnR0DarwinAstPending)
    114115        return false;
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