VirtualBox

Changeset 99775 in vbox for trunk/src/VBox/Main/testcase


Ignore:
Timestamp:
May 12, 2023 12:21:58 PM (19 months ago)
Author:
vboxsync
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/Main/testcase
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/testcase/tstAPI.cpp

    r98302 r99775  
    6565///////////////////////////////////////////////////////////////////////////////
    6666
    67 HRESULT readAndChangeMachineSettings(IMachine *machine, IMachine *readonlyMachine = 0)
     67#if 0 /* unused */
     68static HRESULT readAndChangeMachineSettings(IMachine *machine, IMachine *readonlyMachine = 0)
    6869{
    6970    HRESULT hrc = S_OK;
     
    199200    return hrc;
    200201}
     202#endif
    201203
    202204// main
  • trunk/src/VBox/Main/testcase/tstCollector.cpp

    r98103 r99775  
    8282  } while (0)
    8383
    84 void shutdownProcessList(std::vector<RTPROCESS> const &rProcesses)
     84static void shutdownProcessList(std::vector<RTPROCESS> const &rProcesses)
    8585{
    8686    for (size_t i = 0; i < rProcesses.size(); i++)
     
    8888}
    8989
    90 void measurePerformance(pm::CollectorHAL *collector, const char *pszName, int cVMs)
     90static void measurePerformance(pm::CollectorHAL *collector, const char *pszName, int cVMs)
    9191{
    9292
     
    164164#define NETIFNAME "eth0"
    165165#endif
    166 int testNetwork(pm::CollectorHAL *collector)
     166static int testNetwork(pm::CollectorHAL *collector)
    167167{
    168168    pm::CollectorHints hints;
     
    222222
    223223#define FSNAME "/"
    224 int testFsUsage(pm::CollectorHAL *collector)
     224static int testFsUsage(pm::CollectorHAL *collector)
    225225{
    226226    RTPrintf("tstCollector: TESTING - File system usage\n");
     
    245245}
    246246
    247 int testDisk(pm::CollectorHAL *collector)
     247static int testDisk(pm::CollectorHAL *collector)
    248248{
    249249    pm::CollectorHints hints;
  • trunk/src/VBox/Main/testcase/tstOVF.cpp

    r99569 r99775  
    8989 * @param llMachinesCreated out: UUIDs of machines that were created so that caller can clean up.
    9090 */
    91 void importOVF(const char *pcszPrefix,
    92                ComPtr<IVirtualBox> &pVirtualBox,
    93                const char *pcszOVF0,
    94                std::list<Guid> &llMachinesCreated)
     91static void importOVF(const char *pcszPrefix,
     92                      ComPtr<IVirtualBox> &pVirtualBox,
     93                      const char *pcszOVF0,
     94                      std::list<Guid> &llMachinesCreated)
    9595{
    9696    char szAbsOVF[RTPATH_MAX];
     
    289289 * @param pcszDest Target for dummy VMDK.
    290290 */
    291 void copyDummyDiskImage(const char *pcszPrefix,
    292                         std::list<Utf8Str> &llFiles2Delete,
    293                         const char *pcszDest)
     291static void copyDummyDiskImage(const char *pcszPrefix,
     292                               std::list<Utf8Str> &llFiles2Delete,
     293                               const char *pcszDest)
    294294{
    295295    char szSrc[RTPATH_MAX];
  • trunk/src/VBox/Main/testcase/tstVBoxAPIXPCOM.cpp

    r98103 r99775  
    104104 * @param virtualBox VirtualBox instance object.
    105105 */
    106 void listVMs(IVirtualBox *virtualBox)
     106static void listVMs(IVirtualBox *virtualBox)
    107107{
    108108    nsresult rc;
     
    188188 * @param virtualBox VirtualBox instance object.
    189189 */
    190 void createVM(IVirtualBox *virtualBox)
     190static void createVM(IVirtualBox *virtualBox)
    191191{
    192192    nsresult rc;
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