VirtualBox

Ignore:
Timestamp:
May 12, 2023 12:21:58 PM (2 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
157370
Message:

*: Mark functions as static if not used outside of a given compilation unit. Enables the compiler to optimize inlining, reduces the symbol tables, exposes unused functions and in some rare cases exposes mismtaches between function declarations and definitions, but most importantly reduces the number of parfait reports for the extern-function-no-forward-declaration category. This should not result in any functional changes, bugref:3409

Location:
trunk/src/VBox/Frontends/VBoxManage
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VBoxManage/VBoxManage.h

    r98103 r99775  
    175175#endif
    176176RTEXITCODE handleModifyVM(HandlerArg *a);
     177VMProcPriority_T nameToVMProcPriority(const char *pszName);
    177178
    178179/* VBoxManageDebugVM.cpp */
  • trunk/src/VBox/Frontends/VBoxManage/VBoxManageControlVM.cpp

    r99204 r99775  
    5353
    5454DECLARE_TRANSLATION_CONTEXT(ControlVM);
    55 
    56 VMProcPriority_T nameToVMProcPriority(const char *pszName);
    5755
    5856/**
  • trunk/src/VBox/Frontends/VBoxManage/VBoxManageGuestCtrl.cpp

    r99773 r99775  
    370370 * Translates a guest process wait result to a human readable string.
    371371 */
    372 const char *gctlProcessWaitResultToText(ProcessWaitResult_T enmWaitResult)
     372static const char *gctlProcessWaitResultToText(ProcessWaitResult_T enmWaitResult)
    373373{
    374374    switch (enmWaitResult)
     
    455455 * Translates a file system objec type to a string.
    456456 */
    457 const char *gctlFsObjTypeToName(FsObjType_T enmType)
     457static const char *gctlFsObjTypeToName(FsObjType_T enmType)
    458458{
    459459    switch (enmType)
  • trunk/src/VBox/Frontends/VBoxManage/VBoxManageInfo.cpp

    r98103 r99775  
    400400}
    401401
    402 const char *facilityStateToName(AdditionsFacilityStatus_T faStatus, bool fShort)
     402static const char *facilityStateToName(AdditionsFacilityStatus_T faStatus, bool fShort)
    403403{
    404404    switch (faStatus)
     
    471471 * This simply outputs the string adding necessary escaping and nothing else.
    472472 */
    473 void outputMachineReadableStringWorker(const char *psz)
     473static void outputMachineReadableStringWorker(const char *psz)
    474474{
    475475    for (;;)
  • trunk/src/VBox/Frontends/VBoxManage/VBoxManageMisc.cpp

    r98298 r99775  
    932932};
    933933
    934 RTEXITCODE handleSetVMEncryption(HandlerArg *a, const char *pszFilenameOrUuid)
     934static RTEXITCODE handleSetVMEncryption(HandlerArg *a, const char *pszFilenameOrUuid)
    935935{
    936936    HRESULT           hrc;
     
    10651065}
    10661066
    1067 RTEXITCODE handleCheckVMPassword(HandlerArg *a, const char *pszFilenameOrUuid)
     1067static RTEXITCODE handleCheckVMPassword(HandlerArg *a, const char *pszFilenameOrUuid)
    10681068{
    10691069    HRESULT hrc;
     
    11081108};
    11091109
    1110 RTEXITCODE handleAddVMPassword(HandlerArg *a, const char *pszFilenameOrUuid)
     1110static RTEXITCODE handleAddVMPassword(HandlerArg *a, const char *pszFilenameOrUuid)
    11111111{
    11121112    HRESULT hrc;
     
    11891189}
    11901190
    1191 RTEXITCODE handleRemoveVMPassword(HandlerArg *a, const char *pszFilenameOrUuid)
     1191static RTEXITCODE handleRemoveVMPassword(HandlerArg *a, const char *pszFilenameOrUuid)
    11921192{
    11931193    HRESULT hrc;
     
    19671967}
    19681968
    1969 RTEXITCODE handleUnattendedDetect(HandlerArg *a)
     1969static RTEXITCODE handleUnattendedDetect(HandlerArg *a)
    19701970{
    19711971    HRESULT hrc;
     
    20872087}
    20882088
    2089 RTEXITCODE handleUnattendedInstall(HandlerArg *a)
     2089static RTEXITCODE handleUnattendedInstall(HandlerArg *a)
    20902090{
    20912091    HRESULT hrc;
  • trunk/src/VBox/Frontends/VBoxManage/VBoxManageSnapshot.cpp

    r98298 r99775  
    6060 * @return
    6161 */
    62 bool FindAndPrintSnapshotUsingMedium(ComPtr<IMedium> &pMedium,
    63                                      ComPtr<ISnapshot> &pThisSnapshot,
    64                                      ComPtr<ISnapshot> &pCurrentSnapshot,
    65                                      uint32_t uMediumLevel,
    66                                      uint32_t uSnapshotLevel)
     62static bool FindAndPrintSnapshotUsingMedium(ComPtr<IMedium> &pMedium,
     63                                            ComPtr<ISnapshot> &pThisSnapshot,
     64                                            ComPtr<ISnapshot> &pCurrentSnapshot,
     65                                            uint32_t uMediumLevel,
     66                                            uint32_t uSnapshotLevel)
    6767{
    6868    HRESULT hrc;
     
    138138 * @param uLevel variant, the recursion level for output indentation.
    139139 */
    140 void DumpMediumWithChildren(ComPtr<IMedium> &pCurrentStateMedium,
    141                             ComPtr<IMedium> &pMedium,
    142                             ComPtr<ISnapshot> &pRootSnapshot,
    143                             ComPtr<ISnapshot> &pCurrentSnapshot,
    144                             uint32_t uLevel)
     140static void DumpMediumWithChildren(ComPtr<IMedium> &pCurrentStateMedium,
     141                                   ComPtr<IMedium> &pMedium,
     142                                   ComPtr<ISnapshot> &pRootSnapshot,
     143                                   ComPtr<ISnapshot> &pCurrentSnapshot,
     144                                   uint32_t uLevel)
    145145{
    146146    HRESULT hrc;
     
    227227 * @param pMachine Machine to dump snapshots for.
    228228 */
    229 void DumpSnapshot(ComPtr<IMachine> &pMachine)
     229static void DumpSnapshot(ComPtr<IMachine> &pMachine)
    230230{
    231231    HRESULT hrc;
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