VirtualBox

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/testcase/tstVMMR0CallHost-1.cpp

    r98103 r99775  
    6262
    6363
    64 int foo(int i, int iZero, int iMinusOne)
     64static int foo(int i, int iZero, int iMinusOne)
    6565{
    6666    NOREF(iZero);
     
    9595
    9696
    97 DECLCALLBACK(int) tst2(intptr_t i, intptr_t i2)
     97static DECLCALLBACK(int) tst2(intptr_t i, intptr_t i2)
    9898{
    9999    RTTESTI_CHECK_MSG_RET(i >= 0 && i <= 8192, ("i=%d is out of range [0..8192]\n", i),      1);
     
    106106
    107107
    108 DECLCALLBACK(DECL_NO_INLINE(RT_NOTHING, int)) stackRandom(PVMMR0JMPBUF pJmpBuf, PFNVMMR0SETJMP pfn, PVM pVM, PVMCPU pVCpu)
     108static DECLCALLBACK(DECL_NO_INLINE(RT_NOTHING, int)) stackRandom(PVMMR0JMPBUF pJmpBuf, PFNVMMR0SETJMP pfn, PVM pVM, PVMCPU pVCpu)
    109109{
    110110#ifdef RT_ARCH_AMD64
     
    121121
    122122
    123 void tst(int iFrom, int iTo, int iInc)
     123static void tst(int iFrom, int iTo, int iInc)
    124124{
    125125    RT_BZERO(&g_Jmp, RT_UOFFSETOF(VMMR0JMPBUF, cbStackBuf));
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