VirtualBox

Changeset 62873 in vbox for trunk/src/VBox/Storage


Ignore:
Timestamp:
Aug 2, 2016 2:00:15 PM (9 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
109471
Message:

Storage: warnings.

Location:
trunk/src/VBox/Storage
Files:
9 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Storage/DMG.cpp

    r62752 r62873  
    432432*   Internal Functions                                                                                                           *
    433433*********************************************************************************************************************************/
     434#if 0 /* unused */
    434435static void dmgUdifFtrHost2FileEndian(PDMGUDIF pUdif);
     436#endif
    435437static void dmgUdifFtrFile2HostEndian(PDMGUDIF pUdif);
    436438
     
    438440static void dmgUdifIdFile2HostEndian(PDMGUDIFID pId);
    439441
     442#if 0 /* unused */
    440443static void dmgUdifCkSumHost2FileEndian(PDMGUDIFCKSUM pCkSum);
     444#endif
    441445static void dmgUdifCkSumFile2HostEndian(PDMGUDIFCKSUM pCkSum);
    442446static bool dmgUdifCkSumIsValid(PCDMGUDIFCKSUM pCkSum, const char *pszPrefix);
     
    589593
    590594
     595#if 0 /* unused */
    591596/**
    592597 * Swaps endian from host cpu to file.
     
    600605    dmgUdifCkSumHost2FileEndian(&pUdif->MasterCkSum);
    601606}
     607#endif
    602608
    603609
     
    741747
    742748
     749#if 0 /* unused */
    743750/**
    744751 * Swaps endian from host cpu to file.
     
    749756    dmgSwapEndianUdifCkSum(pCkSum, pCkSum->u32Kind, pCkSum->cBits);
    750757}
     758#endif
    751759
    752760
  • trunk/src/VBox/Storage/QCOW.cpp

    r62745 r62873  
    452452}
    453453
     454#if 0 /* unused */
    454455/**
    455456 * Convert refcount table entries from little endian to host endianess.
     
    467468    }
    468469}
    469 
     470#endif
     471
     472#if 0 /* unused */
    470473/**
    471474 * Convert table entries from host to little endian format.
     
    486489    }
    487490}
     491#endif
    488492
    489493/**
  • trunk/src/VBox/Storage/QED.cpp

    r62746 r62873  
    345345}
    346346
     347#if defined(RT_BIG_ENDIAN)
    347348/**
    348349 * Convert table entries from host to little endian format.
     
    363364    }
    364365}
     366#endif
    365367
    366368/**
     
    560562}
    561563
     564#if 0 /* unused */
    562565/**
    563566 * Fetches the L2 from the given offset trying the LRU cache first and
     
    611614    return rc;
    612615}
     616#endif
    613617
    614618/**
  • trunk/src/VBox/Storage/VCICache.cpp

    r62741 r62873  
    493493}
    494494
     495#if 0 /** @todo unsued vciBlkMapDestroy */
    495496/**
    496497 * Frees a block map.
     
    518519    LogFlowFunc(("returns\n"));
    519520}
     521#endif
    520522
    521523/**
     
    667669                        return VINF_SUCCESS;
    668670                    }
    669                     else
    670                         RTMemFree(pBlkMap);
     671
     672                    RTMemFree(pBlkMap);
    671673                }
    672674                else
     
    775777}
    776778
     779#if 0 /* unused */
    777780/**
    778781 * Finds the range block describing the given block address.
     
    792795    return pBlk;
    793796}
     797#endif
    794798
    795799/**
     
    882886}
    883887
     888#if 0 /* unused */
    884889/**
    885890 * Try to extend the space of an already allocated block.
     
    905910    return rc;
    906911}
    907 
     912#endif /* unused */
     913
     914#if 0 /* unused */
    908915/**
    909916 * Frees a range of blocks.
     
    987994    LogFlowFunc(("returns\n"));
    988995}
     996#endif /* unused */
    989997
    990998/**
  • trunk/src/VBox/Storage/VD.cpp

    r62739 r62873  
    16021602}
    16031603
     1604#if 0 /* unused */
    16041605static int vdIoCtxCmp(PVDIOCTX pIoCtx1, PVDIOCTX pIoCtx2, size_t cbData)
    16051606{
    16061607    return RTSgBufCmp(&pIoCtx1->Req.Io.SgBuf, &pIoCtx2->Req.Io.SgBuf, cbData);
    16071608}
     1609#endif
    16081610
    16091611static size_t vdIoCtxCopyTo(PVDIOCTX pIoCtx, const uint8_t *pbData, size_t cbData)
     
    55885590}
    55895591
     5592#if 0 /* unsed */
    55905593static int vdIOIntMetaXferReleaseLimited(void *pvUser, PVDMETAXFER pMetaXfer)
    55915594{
     
    55955598    return VINF_SUCCESS;
    55965599}
     5600#endif
    55975601
    55985602static DECLCALLBACK(int) vdIOIntFlushLimited(void *pvUser, PVDIOSTORAGE pStorage,
  • trunk/src/VBox/Storage/VDI.cpp

    r62742 r62873  
    5959static void vdiInitPreHeader(PVDIPREHEADER pPreHdr);
    6060static int  vdiValidatePreHeader(PVDIPREHEADER pPreHdr);
    61 static void vdiInitHeader(PVDIHEADER pHeader, uint32_t uImageFlags,
    62                           const char *pszComment, uint64_t cbDisk,
    63                           uint32_t cbBlock, uint32_t cbBlockExtra);
    6461static int  vdiValidateHeader(PVDIHEADER pHeader);
    6562static void vdiSetupImageDesc(PVDIIMAGEDESC pImage);
  • trunk/src/VBox/Storage/VDIfVfs2.cpp

    r62729 r62873  
    143143}
    144144
     145#if 0  /* unused */
    145146/** @interface_method_impl{VDINTERFACEIO,pfnWriteSync}  */
    146147static DECLCALLBACK(int) notImpl_WriteSync(void *pvUser, void *pvStorage, uint64_t off, const void *pvBuf,
    147148                                           size_t cbWrite, size_t *pcbWritten)
    148149{
    149     NOREF(pvUser); NOREF(pvStorage); NOREF(off); NOREF(pvBuf); NOREF(cbWrite); NOREF(pcbWritten);
    150     Log(("%s\n",  __FUNCTION__));
    151     return VERR_NOT_IMPLEMENTED;
    152 }
     150    RT_NOREF6(pvUser, pvStorage, off, pvBuf, cbWrite, pcbWritten)
     151    Log(("%s\n",  __FUNCTION__));
     152    return VERR_NOT_IMPLEMENTED;
     153}
     154#endif
    153155
    154156/** @interface_method_impl{VDINTERFACEIO,pfnFlushSync}  */
  • trunk/src/VBox/Storage/testcase/VDScript.cpp

    r62732 r62873  
    309309static int vdScriptParseAssignmentExpression(PVDSCRIPTCTXINT pThis, PVDSCRIPTASTEXPR *ppAstNodeExpr);
    310310static int vdScriptParseCastExpression(PVDSCRIPTCTXINT pThis, PVDSCRIPTASTEXPR *ppAstNodeExpr);
     311#if 0 /* unused */
    311312static int vdScriptParseConstExpression(PVDSCRIPTCTXINT pThis, PVDSCRIPTASTEXPR *ppAstNodeExpr);
     313#endif
    312314
    313315/**
     
    705707}
    706708
     709#if 0 /** @todo unused */
    707710/**
    708711 * Destroys a given tokenizer state.
     
    715718    RTMemFree(pTokenizer);
    716719}
     720#endif
    717721
    718722/**
     
    13031307}
    13041308
     1309#if 0 /* unused */
    13051310/**
    13061311 * Parse a storage class specifier.
     
    13341339        *penmStorageClass = VDSCRIPTASTSTORAGECLASS_REGISTER;
    13351340}
    1336 
     1341#endif /* unused */
     1342
     1343#if 0 /* unused */
    13371344/**
    13381345 * Parse a type qualifier.
     
    13601367        *penmTypeQualifier = VDSCRIPTASTTYPEQUALIFIER_VOLATILE;
    13611368}
     1369#endif /* unused */
    13621370
    13631371#if 0
     
    20592067}
    20602068
     2069#if 0 /* unused */
    20612070/**
    20622071 * Parse a constant expression.
     
    20742083    return vdScriptParseCondExpression(pThis, ppAstNodeExpr);
    20752084}
     2085#endif
    20762086
    20772087/**
  • trunk/src/VBox/Storage/testcase/tstVDIo.cpp

    r62735 r62873  
    507507const unsigned g_cScriptActions = RT_ELEMENTS(g_aScriptActions);
    508508
     509#if 0 /* unused */
    509510static DECLCALLBACK(int) vdScriptCallbackPrint(PVDSCRIPTARG paScriptArgs, void *pvUser)
    510511{
     
    513514    return VINF_SUCCESS;
    514515}
     516#endif /* unused */
    515517
    516518static DECLCALLBACK(void) tstVDError(void *pvUser, int rc, RT_SRC_POS_DECL, const char *pszFormat, va_list va)
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