VirtualBox

Changeset 62583 in vbox


Ignore:
Timestamp:
Jul 27, 2016 11:30:39 AM (8 years ago)
Author:
vboxsync
Message:

Unusued parameter warnings.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/iprt/asn1-generator-pass.h

    r62473 r62583  
    166166    /* The reminder of the methods shouldn't normally be needed, just stub them. */ \
    167167    static DECLCALLBACK(void) RT_CONCAT4(RTASN1TMPL_INT_NAME,_XTAG_,a_Name,_Delete)(PRTASN1CORE pThisCore) \
    168     { AssertFailed(); } \
     168    { AssertFailed(); RT_NOREF_PV(pThisCore); } \
    169169    static DECLCALLBACK(int) RT_CONCAT4(RTASN1TMPL_INT_NAME,_XTAG_,a_Name,_Clone)(PRTASN1CORE pThisCore, PCRTASN1CORE pSrcCore, \
    170170                                                                                  PCRTASN1ALLOCATORVTABLE pAllocator) \
    171     { AssertFailed(); return VERR_INTERNAL_ERROR_2; } \
     171    { AssertFailed(); RT_NOREF_PV(pThisCore); RT_NOREF_PV(pSrcCore); RT_NOREF_PV(pAllocator); return VERR_INTERNAL_ERROR_2; } \
    172172    static DECLCALLBACK(int) RT_CONCAT4(RTASN1TMPL_INT_NAME,_XTAG_,a_Name,_Compare)(PCRTASN1CORE pLeftCore, \
    173173                                                                                    PCRTASN1CORE pRightCore) \
    174     { AssertFailed(); return VERR_INTERNAL_ERROR_2; } \
     174    { AssertFailed(); RT_NOREF_PV(pLeftCore); RT_NOREF_PV(pRightCore); return VERR_INTERNAL_ERROR_2; } \
    175175    static DECLCALLBACK(int) RT_CONCAT4(RTASN1TMPL_INT_NAME,_XTAG_,a_Name,_CheckSanity)(PCRTASN1CORE pThisCore, uint32_t fFlags, \
    176176                                                                                        PRTERRINFO pErrInfo, const char *pszErrorTag) \
    177     { AssertFailed(); return VERR_INTERNAL_ERROR_2; } \
     177    { AssertFailed(); RT_NOREF_PV(pThisCore); RT_NOREF_PV(fFlags); RT_NOREF_PV(pErrInfo); RT_NOREF_PV(pszErrorTag); \
     178      return VERR_INTERNAL_ERROR_2; } \
    178179    DECL_HIDDEN_CONST(RTASN1COREVTABLE const) RT_CONCAT5(g_,RTASN1TMPL_INT_NAME,_XTAG_,a_Name,_Vtable) = \
    179180    { \
     
    217218    /* The reminder of the methods shouldn't normally be needed, just stub them. */ \
    218219    static DECLCALLBACK(void) RT_CONCAT4(RTASN1TMPL_INT_NAME,_PC_XTAG_,a_Name,_Delete)(PRTASN1CORE pThisCore) \
    219     { AssertFailed(); } \
     220    { AssertFailed(); RT_NOREF_PV(pThisCore); } \
    220221    static DECLCALLBACK(int) RT_CONCAT4(RTASN1TMPL_INT_NAME,_PC_XTAG_,a_Name,_Clone)(PRTASN1CORE pThisCore, PCRTASN1CORE pSrcCore, \
    221222                                                                                     PCRTASN1ALLOCATORVTABLE pAllocator) \
    222     { AssertFailed(); return VERR_INTERNAL_ERROR_3; } \
     223    { AssertFailed(); RT_NOREF_PV(pThisCore); RT_NOREF_PV(pSrcCore); RT_NOREF_PV(pAllocator);  return VERR_INTERNAL_ERROR_3; } \
    223224    static DECLCALLBACK(int) RT_CONCAT4(RTASN1TMPL_INT_NAME,_PC_XTAG_,a_Name,_Compare)(PCRTASN1CORE pLeftCore, \
    224225                                                                                       PCRTASN1CORE pRightCore) \
    225     { AssertFailed(); return VERR_INTERNAL_ERROR_3; } \
     226    { AssertFailed(); RT_NOREF_PV(pLeftCore); RT_NOREF_PV(pRightCore);  return VERR_INTERNAL_ERROR_3; } \
    226227    static DECLCALLBACK(int) RT_CONCAT4(RTASN1TMPL_INT_NAME,_PC_XTAG_,a_Name,_CheckSanity)(PCRTASN1CORE pThisCore, uint32_t fFlags, \
    227228                                                                                           PRTERRINFO pErrInfo, const char *pszErrorTag) \
    228     { AssertFailed(); return VERR_INTERNAL_ERROR_3; } \
     229    { AssertFailed(); RT_NOREF_PV(pThisCore); RT_NOREF_PV(fFlags); RT_NOREF_PV(pErrInfo); RT_NOREF_PV(pszErrorTag); \
     230      return VERR_INTERNAL_ERROR_3; } \
    229231    DECL_HIDDEN_CONST(RTASN1COREVTABLE const) RT_CONCAT5(g_,RTASN1TMPL_INT_NAME,_PCHOICE_XTAG_,a_Name,_Vtable) = \
    230232    { \
     
    321323RTASN1TMPL_DECL(int) RT_CONCAT(RTASN1TMPL_EXT_NAME,_Init)(RT_CONCAT(P,RTASN1TMPL_TYPE) pThis, PCRTASN1ALLOCATORVTABLE pAllocator) \
    322324{ \
     325    RT_NOREF_PV(pAllocator); \
    323326    RT_ZERO(*pThis)
    324327# define RTASN1TMPL_END_COMMON() \
     
    497500# define RTASN1TMPL_BEGIN_PCHOICE() \
    498501    RTASN1TMPL_BEGIN_COMMON(); \
     502    RT_NOREF_PV(fFlags); \
    499503    RTAsn1Dummy_InitEx(&pThis->Dummy); \
    500504    pThis->Dummy.Asn1Core.pOps = &RT_CONCAT3(g_,RTASN1TMPL_INT_NAME,_Vtable); \
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