VirtualBox

Changeset 63451 in vbox for trunk


Ignore:
Timestamp:
Aug 15, 2016 12:39:40 AM (8 years ago)
Author:
vboxsync
Message:

Runtime: warnings

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

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/Makefile.kmk

    r63407 r63451  
    267267        RT_NO_GIP \
    268268        RT_WITHOUT_NOCRT_WRAPPERS \
    269        IPRT_WITH_OPENSSL
     269       IPRT_WITH_OPENSSL \
     270       NOFILEID
    270271#RuntimeR3_DEFS         += RTMEM_WRAP_TO_EF_APIS
    271272ifdef IPRT_WITH_KSTUFF
     
    18291830#
    18301831RuntimeR0_TEMPLATE      = VBoxR0
    1831 RuntimeR0_DEFS          = IN_RT_R0 RT_WITH_VBOX
     1832RuntimeR0_DEFS          = IN_RT_R0 RT_WITH_VBOX NOFILEID
    18321833ifn1of ($(KBUILD_TARGET_ARCH), amd64 x86)
    18331834 RuntimeR0_DEFS        += RT_NO_GIP
     
    19761977RuntimeR0Drv_TEMPLATE   = VBoxR0DrvLib
    19771978RuntimeR0Drv_SDKS.win   = ReorderCompilerIncs $(VBOX_WINDDK) $(VBOX_WINPSDK)INCS VBOX_OPENSSL
    1978 RuntimeR0Drv_DEFS       = IN_RT_R0 RT_WITH_VBOX RT_WITHOUT_NOCRT_WRAPPERS RT_NO_EXPORT_SYMBOL
     1979RuntimeR0Drv_DEFS       = IN_RT_R0 RT_WITH_VBOX RT_WITHOUT_NOCRT_WRAPPERS RT_NO_EXPORT_SYMBOL NOFILEID
    19791980RuntimeR0Drv_DEFS.win   = IN_SUP_R0 LDR_ONLY_PE
    19801981RuntimeR0Drv_DEFS.linux = MODULE KBUILD_MODNAME=KBUILD_STR\(vboxdrv\) KBUILD_BASENAME=KBUILD_STR\(vboxdrv\) IN_SUP_R0
     
    25442545 #
    25452546 RuntimeRC_TEMPLATE      = VBoxRc
    2546  RuntimeRC_DEFS          = IN_RT_RC RT_WITH_VBOX IN_SUP_RC IN_VMM_RC
     2547 RuntimeRC_DEFS          = IN_RT_RC RT_WITH_VBOX IN_SUP_RC IN_VMM_RC NOFILEID
    25472548 RuntimeRC_INCS          = include
    25482549 RuntimeRC_SOURCES      := \
  • trunk/src/VBox/Runtime/common/asn1/asn1-cursor.cpp

    r62584 r63451  
    5656# define RTASN1_MAX_NESTING     32
    5757#endif
    58 
    59 
    60 /*********************************************************************************************************************************
    61 *   Global Variables                                                                                                             *
    62 *********************************************************************************************************************************/
    63 static char const g_achDigits[11] = "0123456789";
    6458
    6559
  • trunk/src/VBox/Runtime/common/asn1/asn1-ut-string.cpp

    r62564 r63451  
    207207
    208208
     209#if 0 /* unused */
    209210/** GL mappings for ISO-IR-87 (Japanese),  with space and delete. */
    210211static const RTISO2022MAP g_IsoIr87Map =
     
    217218    { 0x24, 0x2b, 0x42, 0xff, 0xff, 0xff } /* Esc into G3 */,
    218219};
     220#endif
    219221
    220222
  • trunk/src/VBox/Runtime/common/crypto/store-cert-add-basic.cpp

    r62477 r63451  
    8282
    8383
     84#ifdef RT_STRICT
    8485/**
    8586 * Checks if we've found all the certificates already.
     
    9697    return true;
    9798}
     99#endif /* RT_STRICT */
    98100
    99101
  • trunk/src/VBox/Runtime/common/math/bignum.cpp

    r62477 r63451  
    177177
    178178
     179#if !defined(IPRT_BIGINT_WITH_ASM) || defined(RT_STRICT)
    179180/**
    180181 * Does addition with borrow.
     
    197198    return uRet;
    198199}
     200#endif
    199201
    200202/** @} */
     
    282284}
    283285
     286#if 0 /* unused */
    284287DECLINLINE(void) rtBigNumElement2xAdd1x(RTBIGNUMELEMENT2X *puValue, RTBIGNUMELEMENT uAdd)
    285288{
     
    290293#endif
    291294}
     295#endif /* unused */
    292296
    293297/** @} */
     
    16151619
    16161620
     1621#if 0 /* unused */
    16171622/**
    16181623 * Clears a bit in the magnitude of @a pBigNum.
     
    16341639    }
    16351640}
     1641#endif /* unused */
    16361642
    16371643
     
    16591665
    16601666
     1667#if 0 /* unused */
    16611668/**
    16621669 * Writes a bit in the magnitude of @a pBigNum.
     
    16761683    return VINF_SUCCESS;
    16771684}
     1685#endif
    16781686
    16791687
  • trunk/src/VBox/Runtime/common/misc/lockvalidator.cpp

    r62564 r63451  
    15691569
    15701570
     1571#if 0 /* unused */
    15711572/**
    15721573 * Gets the lock name for the given record.
     
    16061607    }
    16071608}
    1608 
    1609 
     1609#endif /* unused */
     1610
     1611
     1612#if 0 /* unused */
    16101613/**
    16111614 * Gets the class for this locking record.
     
    16651668    }
    16661669}
    1667 
     1670#endif /* unused */
    16681671
    16691672/**
  • trunk/src/VBox/Runtime/generic/RTSystemShutdown-generic.cpp

    r62477 r63451  
    3838RTDECL(int) RTSystemShutdown(RTMSINTERVAL cMsDelay, uint32_t fFlags, const char *pszLogMsg)
    3939{
     40    RT_NOREF(cMsDelay, pszLogMsg);
    4041    AssertPtrReturn(pszLogMsg, VERR_INVALID_POINTER);
    4142    AssertReturn(!(fFlags & ~RTSYSTEM_SHUTDOWN_VALID_MASK), VERR_INVALID_PARAMETER);
  • trunk/src/VBox/Runtime/generic/http-curl.cpp

    r62635 r63451  
    980980 *
    981981 * @returns Array of proxy configs (CFProxySupport.h style).
    982  * @param   pThis           The HTTP client instance.
    983982 * @param   hUrlTarget      The URL we're about to use.
    984983 * @param   hUrlScript      The PAC script URL.
    985984 */
    986 static CFArrayRef rtHttpDarwinExecuteProxyAutoConfigurationUrl(PRTHTTPINTERNAL pThis, CFURLRef hUrlTarget, CFURLRef hUrlScript)
     985static CFArrayRef rtHttpDarwinExecuteProxyAutoConfigurationUrl(CFURLRef hUrlTarget, CFURLRef hUrlScript)
    987986{
    988987    char szTmp[256];
     
    10701069
    10711070        int rcRet = VINF_NOT_SUPPORTED;
    1072         CFArrayRef hArray = rtHttpDarwinExecuteProxyAutoConfigurationUrl(pThis, hUrlTarget, hUrlScript);
     1071        CFArrayRef hArray = rtHttpDarwinExecuteProxyAutoConfigurationUrl(hUrlTarget, hUrlScript);
    10731072        if (hArray)
    10741073        {
     
    11801179 */
    11811180static int rtHttpDarwinConfigureProxyForUrlWorker(PRTHTTPINTERNAL pThis, CFDictionaryRef hDictProxies,
    1182                                                   const char *pszUrl, PRTURIPARSED pParsed, const char *pszHost)
     1181                                                  const char *pszUrl, const char *pszHost)
    11831182{
    11841183    CFArrayRef  hArray;
     
    12591258                            CFRelease(hArray);
    12601259
    1261                         hArray = rtHttpDarwinExecuteProxyAutoConfigurationUrl(pThis, hUrlTarget, hUrlScript);
     1260                        hArray = rtHttpDarwinExecuteProxyAutoConfigurationUrl(hUrlTarget, hUrlScript);
    12621261                        if (hArray)
    12631262                        {
     
    13341333    CFDictionaryRef hDictProxies = CFNetworkCopySystemProxySettings(); /* Alt for 10.5: SCDynamicStoreCopyProxies(NULL); */
    13351334    if (hDictProxies)
    1336         rc = rtHttpDarwinConfigureProxyForUrlWorker(pThis, hDictProxies, pszUrl, &Parsed, pszHost);
     1335        rc = rtHttpDarwinConfigureProxyForUrlWorker(pThis, hDictProxies, pszUrl, pszHost);
    13371336    else
    13381337        rc = VINF_NOT_SUPPORTED;
  • trunk/src/VBox/Runtime/r0drv/darwin/alloc-r0drv-darwin.cpp

    r62477 r63451  
    2929*   Header Files                                                                                                                 *
    3030*********************************************************************************************************************************/
     31#pragma GCC diagnostic ignored "-Wdeprecated-declarations" /* (IOMallocContiguous et al are deprecated) */
    3132#include "the-darwin-kernel.h"
    3233#include "internal/iprt.h"
  • trunk/src/VBox/Runtime/r0drv/darwin/dbgkrnlinfo-r0drv-darwin.cpp

    r62477 r63451  
    771771                /* Validate the sections. */
    772772                uint32_t            uAlignment = 0;
    773                 uintptr_t           uAddr      = pSeg->vmaddr;
    774773                MY_SECTION const   *paSects    = (MY_SECTION const *)(pSeg + 1);
    775774                for (uint32_t i = 0; i < pSeg->nsects; i++)
     
    11671166    AssertPtrReturn(pThis, VERR_INVALID_HANDLE);
    11681167    AssertMsgReturn(pThis->u32Magic == RTDBGKRNLINFO_MAGIC, ("%p: u32Magic=%RX32\n", pThis, pThis->u32Magic), VERR_INVALID_HANDLE);
    1169     AssertPtrReturn(pszMember, VERR_INVALID_PARAMETER);
    1170     AssertPtrReturn(pszStructure, VERR_INVALID_PARAMETER);
    1171     AssertPtrReturn(poffMember, VERR_INVALID_PARAMETER);
     1168    AssertPtrReturn(pszMember, VERR_INVALID_POINTER);
     1169    AssertPtrReturn(pszModule, VERR_INVALID_POINTER);
     1170    AssertPtrReturn(pszStructure, VERR_INVALID_POINTER);
     1171    AssertPtrReturn(poffMember, VERR_INVALID_POINTER);
    11721172    return VERR_NOT_FOUND;
    11731173}
  • trunk/src/VBox/Runtime/r3/darwin/mp-darwin.cpp

    r62477 r63451  
    7878}
    7979
     80
     81#if 0 /* unused */
    8082/**
    8183 * Internal worker that determines the current number of logical CPUs (hyperthreads).
     
    9395    return 1;
    9496}
     97#endif /* unused */
     98
    9599
    96100/**
  • trunk/src/VBox/Runtime/r3/generic/allocex-r3-generic.cpp

    r62477 r63451  
    4141DECLHIDDEN(int) rtMemAllocEx16BitReach(size_t cbAlloc, uint32_t fFlags, void **ppv)
    4242{
     43    RT_NOREF(cbAlloc, fFlags, ppv);
    4344    return VERR_NOT_SUPPORTED;
    4445}
     
    4748DECLHIDDEN(int) rtMemAllocEx32BitReach(size_t cbAlloc, uint32_t fFlags, void **ppv)
    4849{
     50    RT_NOREF(cbAlloc, fFlags, ppv);
    4951    return VERR_NOT_SUPPORTED;
    5052}
     
    5355DECLHIDDEN(void) rtMemFreeExYyBitReach(void *pv, size_t cb, uint32_t fFlags)
    5456{
     57    RT_NOREF(pv, cb, fFlags);
    5558    AssertFailed();
    5659}
  • trunk/src/VBox/Runtime/testcase/tstRTDarwinMachKernel.cpp

    r62477 r63451  
    6666
    6767
    68 int main(int argc, char **argv)
     68int main()
    6969{
    7070    RTTEST hTest;
  • trunk/src/VBox/Runtime/testcase/tstRTR0DbgKrnlInfo.cpp

    r62477 r63451  
    9494            RTR0TESTR0_CHECK_RC_BREAK(RTR0DbgKrnlInfoQuerySymbol(hKrnlInfo, NULL, NULL, &pvSymbol), VERR_INVALID_PARAMETER);
    9595
    96             RTDBGKRNLINFO hTmp = hKrnlInfo;
     96            RTR0DbgKrnlInfoRelease(hKrnlInfo);
    9797            hKrnlInfo = NIL_RTDBGKRNLINFO;
    98             RTR0DbgKrnlInfoRelease(hKrnlInfo);
    9998            uint32_t cRefs;
    100             RTR0TESTR0_CHECK_MSG((cRefs = RTR0DbgKrnlInfoRelease(hKrnlInfo)) == 0, ("cRefs=%#x", cRefs));
     99            RTR0TESTR0_CHECK_MSG((cRefs = RTR0DbgKrnlInfoRelease(NIL_RTDBGKRNLINFO)) == 0, ("cRefs=%#x", cRefs));
    101100            break;
    102101        }
  • trunk/src/VBox/Runtime/testcase/tstRTR0DbgKrnlInfoDriver.cpp

    r62477 r63451  
    4848extern "C" DECLEXPORT(int) TrustedMain(int argc, char **argv, char **envp)
    4949{
     50    RT_NOREF(argc, argv, envp);
    5051#ifndef VBOX
    5152    RTPrintf("tstSup: SKIPPED\n");
  • trunk/src/VBox/Runtime/testcase/tstVector.cpp

    r62724 r63451  
    5757
    5858/* Start by instantiating each function once for syntax checking */
     59#ifdef __clang__
     60# pragma GCC diagnostic ignored "-Wunused-function" /* https://llvm.org/bugs/show_bug.cgi?id=22712 */
     61#endif
    5962RTVEC_DECL_STRUCT(tstInstance, void *)
    6063RTVEC_DECL_STRUCT(tstInstance2, void *)
     
    6972RTVEC_DECLFN_PUSHBACK(tstInstance, void *)
    7073RTVEC_DECLFN_POPBACK(tstInstance)
    71 RTVEC_DECLFN_POPBACK_DELETE(tstInstance2, void *, deletePVoid,
    72                             tstInstanceDeleteAdapterId)
     74RTVEC_DECLFN_POPBACK_DELETE(tstInstance2, void *, deletePVoid, tstInstanceDeleteAdapterId)
    7375RTVEC_DECLFN_CLEAR(tstInstance)
    74 RTVEC_DECLFN_CLEAR_DELETE(tstInstance2, deletePVoid,
    75                           tstInstanceDeleteAdapterId)
     76RTVEC_DECLFN_CLEAR_DELETE(tstInstance2, deletePVoid, tstInstanceDeleteAdapterId)
    7677RTVEC_DECLFN_DETACH(tstInstance, void *)
    7778
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