VirtualBox

Ignore:
Timestamp:
May 12, 2023 12:21:58 PM (22 months 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/Runtime/common/misc
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/common/misc/lockvalidator.cpp

    r98103 r99775  
    956956 * Call after rtLockValidatorSerializeDetectionEnter.
    957957 */
    958 DECLHIDDEN(void) rtLockValidatorSerializeDetectionLeave(void)
     958DECLINLINE(void) rtLockValidatorSerializeDetectionLeave(void)
    959959{
    960960    RTSEMXROADS hXRoads = g_hLockValidatorXRoads;
  • trunk/src/VBox/Runtime/common/misc/thread.cpp

    r99758 r99775  
    11951195#ifdef IN_RING3
    11961196
     1197#if 0 /* unused */
    11971198/**
    11981199 * Recalculates scheduling attributes for the default process
     
    12061207 * @remarks Will only work for strict builds.
    12071208 */
    1208 int rtThreadDoCalcDefaultPriority(RTTHREADTYPE enmType)
     1209static int rtThreadDoCalcDefaultPriority(RTTHREADTYPE enmType)
    12091210{
    12101211    RT_THREAD_LOCK_RW();
     
    12131214    return rc;
    12141215}
     1216#endif
    12151217
    12161218
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