VirtualBox

Changeset 70558 in vbox for trunk/src


Ignore:
Timestamp:
Jan 12, 2018 2:11:39 PM (7 years ago)
Author:
vboxsync
Message:

gccplugin: Added testcase for missing 's' bug - need to validate format types.

Location:
trunk/src/bldprogs
Files:
1 added
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bldprogs/VBoxCompilerPlugInsGcc.cpp

    r69912 r70558  
    696696                    State.hFmtLoc       = gimple_location(hStmt);
    697697                    dprintf("     %s() __iprt_format%s__(iFmt=%ld, iArgs=%ld)\n",
    698                             DECL_NAME(hFnDecl) ? IDENTIFIER_POINTER(DECL_NAME(hFnDecl)) : "<unamed>",
     698                            hFnDecl && DECL_NAME(hFnDecl) ? IDENTIFIER_POINTER(DECL_NAME(hFnDecl)) : "<unamed>",
    699699                            State.fMaybeNull ? "_maybe_null" : "", State.iFmt, State.iArgs);
    700700
  • trunk/src/bldprogs/test-gccplugin-2.c

    r69500 r70558  
    1818/* Only valid stuff in this one. */
    1919extern void MyIprtPrintf(const char *pszFormat, ...) __attribute__((__iprt_format__(1,2)));
    20 extern void foo(void);
     20extern void foo(const char *pszFormat, ...);
    2121
    2222extern unsigned long long g_ull;
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