VirtualBox

Ignore:
Timestamp:
Jul 26, 2016 2:43:03 PM (9 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
109133
Message:

IPRT: Mark unused parameters.

Location:
trunk/src/VBox/Runtime/common/asn1
Files:
18 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/common/asn1/asn1-basics.cpp

    r62477 r62564  
    588588RTDECL(int) RTAsn1ContextTagN_Clone(PRTASN1CONTEXTTAG pThis, PCRTASN1CONTEXTTAG pSrc, uint32_t uTag)
    589589{
    590     Assert(pSrc->Asn1Core.uTag == uTag || !RTASN1CORE_IS_PRESENT(&pSrc->Asn1Core));
     590    Assert(pSrc->Asn1Core.uTag == uTag || !RTASN1CORE_IS_PRESENT(&pSrc->Asn1Core)); RT_NOREF_PV(uTag);
    591591    return RTAsn1Core_CloneNoContent(&pThis->Asn1Core, &pSrc->Asn1Core);
    592592}
  • trunk/src/VBox/Runtime/common/asn1/asn1-default-allocator.cpp

    r62477 r62564  
    5858static DECLCALLBACK(void) rtAsn1DefaultAllocator_Free(PCRTASN1ALLOCATORVTABLE pThis, PRTASN1ALLOCATION pAllocation, void *pv)
    5959{
     60    RT_NOREF_PV(pThis);
    6061    RTMemFree(pv);
    6162    pAllocation->cbAllocated = 0;
     
    7576        return VINF_SUCCESS;
    7677    }
     78    RT_NOREF_PV(pThis);
    7779    return VERR_NO_MEMORY;
    7880}
     
    9395        return VINF_SUCCESS;
    9496    }
     97    RT_NOREF_PV(pThis);
    9598    return VERR_NO_MEMORY;
    9699}
  • trunk/src/VBox/Runtime/common/asn1/asn1-efence-allocator.cpp

    r62477 r62564  
    4040static DECLCALLBACK(void) rtAsn1EFenceAllocator_Free(PCRTASN1ALLOCATORVTABLE pThis, PRTASN1ALLOCATION pAllocation, void *pv)
    4141{
     42    RT_NOREF_PV(pThis);
    4243    RTMemEfFreeNP(pv);
    4344    pAllocation->cbAllocated = 0;
     
    5657        return VINF_SUCCESS;
    5758    }
     59    RT_NOREF_PV(pThis);
    5860    return VERR_NO_MEMORY;
    5961}
     
    7375        return VINF_SUCCESS;
    7476    }
     77    RT_NOREF_PV(pThis);
    7578    return VERR_NO_MEMORY;
    7679}
  • trunk/src/VBox/Runtime/common/asn1/asn1-encode.cpp

    r62477 r62564  
    167167{
    168168    RTASN1ENCODEPREPARGS *pArgs = (RTASN1ENCODEPREPARGS *)pvUser;
     169    RT_NOREF_PV(pszName);
    169170    if (RTASN1CORE_IS_PRESENT(pAsn1Core))
    170171    {
     
    376377{
    377378    RTASN1ENCODEWRITEARGS *pArgs = (RTASN1ENCODEWRITEARGS *)pvUser;
     379    RT_NOREF_PV(pszName);
    378380    int rc;
    379381    if (RTASN1CORE_IS_PRESENT(pAsn1Core))
     
    460462        pArgs->cbDst  = 0;
    461463    }
     464    RT_NOREF_PV(pErrInfo);
    462465    return VERR_BUFFER_OVERFLOW;
    463466}
  • trunk/src/VBox/Runtime/common/asn1/asn1-ut-bitstring.cpp

    r62477 r62564  
    8282        return VERR_NOT_EQUAL;
    8383    pCtx->offBuf += (uint32_t)cbToWrite;
     84    RT_NOREF_PV(pErrInfo);
    8485    return VINF_SUCCESS;
    8586}
  • trunk/src/VBox/Runtime/common/asn1/asn1-ut-boolean.cpp

    r62477 r62564  
    5454RTDECL(int) RTAsn1Boolean_InitDefault(PRTASN1BOOLEAN pThis, bool fValue, PCRTASN1ALLOCATORVTABLE pAllocator)
    5555{
     56    RT_NOREF_PV(pAllocator);
    5657    RTAsn1Core_InitEx(&pThis->Asn1Core, ASN1_TAG_BOOLEAN, ASN1_TAGCLASS_UNIVERSAL | ASN1_TAGFLAG_PRIMITIVE,
    5758                      &g_RTAsn1Boolean_Vtable, RTASN1CORE_F_DEFAULT | RTASN1CORE_F_PRIMITE_TAG_STRUCT);
     
    102103RTDECL(int) RTAsn1Boolean_Init(PRTASN1BOOLEAN pThis, PCRTASN1ALLOCATORVTABLE pAllocator)
    103104{
     105    RT_NOREF_PV(pAllocator);
    104106    RTAsn1Core_InitEx(&pThis->Asn1Core, ASN1_TAG_BOOLEAN, ASN1_TAGCLASS_UNIVERSAL | ASN1_TAGFLAG_PRIMITIVE,
    105107                      &g_RTAsn1Boolean_Vtable, RTASN1CORE_F_PRESENT | RTASN1CORE_F_PRIMITE_TAG_STRUCT);
     
    161163{
    162164    Assert(pThis && (!RTAsn1Boolean_IsPresent(pThis) || pThis->Asn1Core.pOps == &g_RTAsn1Boolean_Vtable));
     165    RT_NOREF_PV(pThis); RT_NOREF_PV(pfnCallback); RT_NOREF_PV(uDepth); RT_NOREF_PV(pvUser);
    163166
    164167    /* No children to enumerate. */
     
    190193    if (RT_UNLIKELY(!RTAsn1Boolean_IsPresent(pThis)))
    191194        return RTErrInfoSetF(pErrInfo, VERR_ASN1_NOT_PRESENT, "%s: Missing (BOOLEAN).", pszErrorTag);
     195    RT_NOREF_PV(fFlags);
    192196    return VINF_SUCCESS;
    193197}
  • trunk/src/VBox/Runtime/common/asn1/asn1-ut-core-decode.cpp

    r62477 r62564  
    4545        return VINF_SUCCESS;
    4646    }
     47    RT_NOREF_PV(fFlags);
    4748    RT_ZERO(*pThis);
    4849    return rc;
  • trunk/src/VBox/Runtime/common/asn1/asn1-ut-core.cpp

    r62477 r62564  
    206206RTDECL(int) RTAsn1Core_Init(PRTASN1CORE pThis, PCRTASN1ALLOCATORVTABLE pAllocator)
    207207{
     208    RT_NOREF_PV(pAllocator);
    208209    return RTAsn1Core_InitEx(pThis, 0, ASN1_TAGCLASS_CONTEXT | ASN1_TAGFLAG_PRIMITIVE,
    209210                             &g_RTAsn1Core_Vtable, RTASN1CORE_F_PRESENT);
     
    262263RTDECL(int) RTAsn1Core_CheckSanity(PCRTASN1CORE pThis, uint32_t fFlags, PRTERRINFO pErrInfo, const char *pszErrorTag)
    263264{
     265    RT_NOREF_PV(fFlags);
     266
    264267    /* We can only check that it's present. */
    265268    if (!RTAsn1Core_IsPresent(pThis))
  • trunk/src/VBox/Runtime/common/asn1/asn1-ut-dyntype-decode.cpp

    r62477 r62564  
    4343    RT_ZERO(*pDynType);
    4444
    45     Assert(!(fFlags & RTASN1CURSOR_GET_F_IMPLICIT));
     45    Assert(!(fFlags & RTASN1CURSOR_GET_F_IMPLICIT)); RT_NOREF_PV(fFlags);
    4646    uint32_t        cbSavedLeft = pCursor->cbLeft;
    4747    uint8_t const  *pbSavedCur  = pCursor->pbCur;
  • trunk/src/VBox/Runtime/common/asn1/asn1-ut-dyntype.cpp

    r62477 r62564  
    4545RTDECL(int) RTAsn1DynType_Init(PRTASN1DYNTYPE pThis, PCRTASN1ALLOCATORVTABLE pAllocator)
    4646{
     47    RT_NOREF_PV(pAllocator);
    4748    RT_ZERO(*pThis);
    4849    pThis->enmType = RTASN1TYPE_NOT_PRESENT;
  • trunk/src/VBox/Runtime/common/asn1/asn1-ut-integer.cpp

    r60030 r62564  
    403403RTDECL(int) RTAsn1Integer_Init(PRTASN1INTEGER pThis, PCRTASN1ALLOCATORVTABLE pAllocator)
    404404{
     405    RT_NOREF_PV(pAllocator);
    405406    RTAsn1Core_InitEx(&pThis->Asn1Core,
    406407                      ASN1_TAG_INTEGER,
     
    462463RTDECL(int) RTAsn1Integer_Enum(PRTASN1INTEGER pThis, PFNRTASN1ENUMCALLBACK pfnCallback, uint32_t uDepth, void *pvUser)
    463464{
     465    RT_NOREF_PV(pThis); RT_NOREF_PV(pfnCallback); RT_NOREF_PV(uDepth); RT_NOREF_PV(pvUser);
    464466    Assert(pThis && (!RTAsn1Integer_IsPresent(pThis) || pThis->Asn1Core.pOps == &g_RTAsn1Integer_Vtable));
    465467
     
    477479RTDECL(int) RTAsn1Integer_CheckSanity(PCRTASN1INTEGER pThis, uint32_t fFlags, PRTERRINFO pErrInfo, const char *pszErrorTag)
    478480{
     481    RT_NOREF_PV(fFlags);
    479482    if (RT_UNLIKELY(!RTAsn1Integer_IsPresent(pThis)))
    480483        return RTErrInfoSetF(pErrInfo, VERR_ASN1_NOT_PRESENT, "%s: Missing (INTEGER).", pszErrorTag);
  • trunk/src/VBox/Runtime/common/asn1/asn1-ut-null.cpp

    r62477 r62564  
    6767RTDECL(int) RTAsn1Null_Init(PRTASN1NULL pThis, PCRTASN1ALLOCATORVTABLE pAllocator)
    6868{
     69    RT_NOREF_PV(pAllocator);
    6970    return RTAsn1Core_InitEx(&pThis->Asn1Core, ASN1_TAG_NULL, ASN1_TAGCLASS_UNIVERSAL | ASN1_TAGFLAG_PRIMITIVE,
    7071                             &g_RTAsn1Null_Vtable, RTASN1CORE_F_PRESENT | RTASN1CORE_F_PRIMITE_TAG_STRUCT);
     
    7475RTDECL(int) RTAsn1Null_Clone(PRTASN1NULL pThis, PCRTASN1NULL pSrc, PCRTASN1ALLOCATORVTABLE pAllocator)
    7576{
    76     AssertPtr(pSrc); AssertPtr(pThis); AssertPtr(pAllocator);
     77    AssertPtr(pSrc); AssertPtr(pThis); AssertPtr(pAllocator); RT_NOREF_PV(pAllocator);
    7778    RT_ZERO(*pThis);
    7879    if (RTAsn1Null_IsPresent(pSrc))
     
    102103RTDECL(int) RTAsn1Null_Enum(PRTASN1NULL pThis, PFNRTASN1ENUMCALLBACK pfnCallback, uint32_t uDepth, void *pvUser)
    103104{
     105    RT_NOREF_PV(pThis); RT_NOREF_PV(pfnCallback); RT_NOREF_PV(uDepth); RT_NOREF_PV(pvUser);
    104106    Assert(pThis && (!RTAsn1Null_IsPresent(pThis) || pThis->Asn1Core.pOps == &g_RTAsn1Null_Vtable));
    105107
     
    120122RTDECL(int) RTAsn1Null_CheckSanity(PCRTASN1NULL pThis, uint32_t fFlags, PRTERRINFO pErrInfo, const char *pszErrorTag)
    121123{
     124    RT_NOREF_PV(fFlags);
    122125    if (RT_UNLIKELY(!RTAsn1Null_IsPresent(pThis)))
    123126        return RTErrInfoSetF(pErrInfo, VERR_ASN1_NOT_PRESENT, "%s: Missing (NULL).", pszErrorTag);
  • trunk/src/VBox/Runtime/common/asn1/asn1-ut-objid-decode.cpp

    r62477 r62564  
    233233                        }
    234234                        return RTAsn1CursorSetInfo(pCursor, VERR_ASN1_OBJID_TOO_LONG_STRING_FORM,
    235                                                    "Object ID has a too long string form: %#x (max %#x)",
    236                                                    cchObjId, RT_SIZEOFMEMB(RTASN1OBJID, szObjId));
     235                                                   "%s: Object ID has a too long string form: %#x (max %#x)",
     236                                                   pszErrorTag, cchObjId, RT_SIZEOFMEMB(RTASN1OBJID, szObjId));
    237237                    }
    238238                    return RTAsn1CursorSetInfo(pCursor, VERR_ASN1_OBJID_TOO_MANY_COMPONENTS,
    239                                                "Object ID has too many components: %#x (max 127)", cComponents);
     239                                               "%s: Object ID has too many components: %#x (max 127)", pszErrorTag, cComponents);
    240240                }
    241241
     
    244244            } while (rc > 0);
    245245        }
    246         rc = RTAsn1CursorSetInfo(pCursor, rc, "Bad object ID component #%u encoding: %.*Rhxs",
    247                                  cComponents, cbContent, pbContent);
     246        rc = RTAsn1CursorSetInfo(pCursor, rc, "%s: Bad object ID component #%u encoding: %.*Rhxs",
     247                                 pszErrorTag, cComponents, cbContent, pbContent);
    248248    }
    249249    else if (cbContent)
    250         rc = RTAsn1CursorSetInfo(pCursor, VERR_ASN1_INVALID_OBJID_ENCODING, "Object ID content is loo long: %#x", cbContent);
     250        rc = RTAsn1CursorSetInfo(pCursor, VERR_ASN1_INVALID_OBJID_ENCODING, "%s: Object ID content is loo long: %#x",
     251                                 pszErrorTag, cbContent);
    251252    else
    252         rc = RTAsn1CursorSetInfo(pCursor, VERR_ASN1_INVALID_OBJID_ENCODING, "Zero length object ID content");
     253        rc = RTAsn1CursorSetInfo(pCursor, VERR_ASN1_INVALID_OBJID_ENCODING, "%s: Zero length object ID content", pszErrorTag);
    253254    return rc;
    254255}
  • trunk/src/VBox/Runtime/common/asn1/asn1-ut-objid.cpp

    r62477 r62564  
    395395RTDECL(int) RTAsn1ObjId_Init(PRTASN1OBJID pThis, PCRTASN1ALLOCATORVTABLE pAllocator)
    396396{
     397    RT_NOREF_PV(pAllocator);
    397398    RTAsn1Core_InitEx(&pThis->Asn1Core,
    398399                      ASN1_TAG_OID,
     
    497498RTDECL(int) RTAsn1ObjId_Enum(PRTASN1OBJID pThis, PFNRTASN1ENUMCALLBACK pfnCallback, uint32_t uDepth, void *pvUser)
    498499{
     500    RT_NOREF_PV(pThis); RT_NOREF_PV(pfnCallback); RT_NOREF_PV(uDepth); RT_NOREF_PV(pvUser);
    499501    Assert(pThis && (!RTAsn1ObjId_IsPresent(pThis) || pThis->Asn1Core.pOps == &g_RTAsn1ObjId_Vtable));
    500502
     
    527529RTDECL(int) RTAsn1ObjId_CheckSanity(PCRTASN1OBJID pThis, uint32_t fFlags, PRTERRINFO pErrInfo, const char *pszErrorTag)
    528530{
     531    RT_NOREF_PV(fFlags);
    529532    if (RT_UNLIKELY(!RTAsn1ObjId_IsPresent(pThis)))
    530533        return RTErrInfoSetF(pErrInfo, VERR_ASN1_NOT_PRESENT, "%s: Missing (OBJID).", pszErrorTag);
  • trunk/src/VBox/Runtime/common/asn1/asn1-ut-octetstring.cpp

    r62477 r62564  
    7878{
    7979    RTASN1OCTETSTRINGWRITERCTX *pCtx = (RTASN1OCTETSTRINGWRITERCTX *)pvUser;
     80    RT_NOREF_PV(pErrInfo);
    8081    AssertReturn(cbToWrite <= pCtx->cbBuf - pCtx->offBuf, VERR_BUFFER_OVERFLOW);
    8182    if (memcmp(&pCtx->pbBuf[pCtx->offBuf], pvBuf, cbToWrite) != 0)
  • trunk/src/VBox/Runtime/common/asn1/asn1-ut-string.cpp

    r62477 r62564  
    17361736RTDECL(int) RTAsn1String_Enum(PRTASN1STRING pThis, PFNRTASN1ENUMCALLBACK pfnCallback, uint32_t uDepth, void *pvUser)
    17371737{
     1738    RT_NOREF_PV(pThis); RT_NOREF_PV(pfnCallback); RT_NOREF_PV(uDepth); RT_NOREF_PV(pvUser);
    17381739    Assert(pThis && (!RTAsn1String_IsPresent(pThis) || pThis->Asn1Core.pOps == &g_RTAsn1String_Vtable));
    17391740
     
    17521753RTDECL(int) RTAsn1String_CheckSanity(PCRTASN1STRING pThis, uint32_t fFlags, PRTERRINFO pErrInfo, const char *pszErrorTag)
    17531754{
     1755    RT_NOREF_PV(fFlags);
    17541756    if (RT_UNLIKELY(!RTAsn1String_IsPresent(pThis)))
    17551757        return RTErrInfoSetF(pErrInfo, VERR_ASN1_NOT_PRESENT, "%s: Missing (STRING).", pszErrorTag);
     
    17871789    RTDECL(int) RT_CONCAT(a_Api,_Enum)(PRTASN1STRING pThis, PFNRTASN1ENUMCALLBACK pfnCallback, uint32_t uDepth, void *pvUser) \
    17881790    { \
     1791        RT_NOREF_PV(pThis); RT_NOREF_PV(pfnCallback); RT_NOREF_PV(uDepth); RT_NOREF_PV(pvUser); \
    17891792        Assert(   pThis \
    17901793               && (   !RTAsn1String_IsPresent(pThis) \
  • trunk/src/VBox/Runtime/common/asn1/asn1-ut-time-decode.cpp

    r62477 r62564  
    305305RTDECL(int) RTAsn1Time_DecodeAsn1(PRTASN1CURSOR pCursor, uint32_t fFlags, PRTASN1TIME pThis, const char *pszErrorTag)
    306306{
    307     Assert(!(fFlags & RTASN1CURSOR_GET_F_IMPLICIT));
     307    Assert(!(fFlags & RTASN1CURSOR_GET_F_IMPLICIT)); RT_NOREF_PV(fFlags);
    308308    int rc = RTAsn1CursorReadHdr(pCursor, &pThis->Asn1Core, pszErrorTag);
    309309    if (RT_SUCCESS(rc))
  • trunk/src/VBox/Runtime/common/asn1/asn1-ut-time.cpp

    r62477 r62564  
    5555RTDECL(int) RTAsn1Time_InitEx(PRTASN1TIME pThis, uint32_t uTag, PCRTASN1ALLOCATORVTABLE pAllocator)
    5656{
     57    RT_NOREF_PV(pAllocator);
    5758    AssertReturn(uTag == ASN1_TAG_UTC_TIME || uTag == ASN1_TAG_GENERALIZED_TIME, VERR_INVALID_PARAMETER);
    5859    RTAsn1Core_InitEx(&pThis->Asn1Core,
     
    154155RTDECL(int) RTAsn1Time_Enum(PRTASN1TIME pThis, PFNRTASN1ENUMCALLBACK pfnCallback, uint32_t uDepth, void *pvUser)
    155156{
     157    RT_NOREF_PV(pThis); RT_NOREF_PV(pfnCallback); RT_NOREF_PV(uDepth); RT_NOREF_PV(pvUser);
    156158    Assert(pThis && (!RTAsn1Time_IsPresent(pThis) || pThis->Asn1Core.pOps == &g_RTAsn1Time_Vtable));
    157159
     
    190192RTDECL(int) RTAsn1Time_CheckSanity(PCRTASN1TIME pThis, uint32_t fFlags, PRTERRINFO pErrInfo, const char *pszErrorTag)
    191193{
     194    RT_NOREF_PV(fFlags);
    192195    if (RT_UNLIKELY(!RTAsn1Time_IsPresent(pThis)))
    193196        return RTErrInfoSetF(pErrInfo, VERR_ASN1_NOT_PRESENT, "%s: Missing (TIME).", pszErrorTag);
     
    225228    RTDECL(int) RT_CONCAT(a_Api,_Enum)(PRTASN1TIME pThis, PFNRTASN1ENUMCALLBACK pfnCallback, uint32_t uDepth, void *pvUser) \
    226229    { \
     230        RT_NOREF_PV(pThis); RT_NOREF_PV(pfnCallback); RT_NOREF_PV(uDepth); RT_NOREF_PV(pvUser); \
    227231        Assert(   pThis \
    228232               && (   !RTAsn1Time_IsPresent(pThis) \
Note: See TracChangeset for help on using the changeset viewer.

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