VirtualBox

Changeset 99776 in vbox


Ignore:
Timestamp:
May 12, 2023 12:26:10 PM (17 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 [build fix]

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/testcase/tstRTR0Common.h

    r99775 r99776  
    211211 * Report an error.
    212212 */
    213 void RTR0TestR0Error(const char *pszFormat, ...)
     213DECLINLINE(void) RTR0TestR0Error(const char *pszFormat, ...)
    214214{
    215215    size_t off = RTStrNLen(g_szErr, sizeof(g_szErr) - 1);
     
    252252 * Informational message.
    253253 */
    254 static void RTR0TestR0Info(const char *pszFormat, ...)
     254DECLINLINE(void) RTR0TestR0Info(const char *pszFormat, ...)
    255255{
    256256    size_t off = RTStrNLen(g_szErr, sizeof(g_szErr) - 1);
     
    279279 * Report an error.
    280280 */
    281 static void RTR0TestR0Skip(const char *pszFormat, ...)
     281DECLINLINE(void) RTR0TestR0Skip(const char *pszFormat, ...)
    282282{
    283283    size_t off = RTStrNLen(g_szErr, sizeof(g_szErr) - 1);
     
    309309 * @returns true if there are errors, false if none.
    310310 */
    311 static bool RTR0TestR0HaveErrors(void)
     311DECLINLINE(bool) RTR0TestR0HaveErrors(void)
    312312{
    313313    return ASMAtomicUoReadU32(&g_cErrors) > 0;
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