VirtualBox

Changeset 55192 in vbox


Ignore:
Timestamp:
Apr 10, 2015 5:43:53 PM (10 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
99498
Message:

gcc 5 is very picky regarding FUNCTION and PRETTY_FUNCTION in C90 code

Location:
trunk
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/iprt/assert.h

    r48934 r55192  
    16141614        if (RT_UNLIKELY(!(expr))) \
    16151615        { \
    1616             RTAssertMsg1Weak(#expr, __LINE__, __FILE__, __PRETTY_FUNCTION__); \
     1616            RTAssertMsg1Weak(#expr, __LINE__, __FILE__, RT_GCC_EXTENSION __PRETTY_FUNCTION__); \
    16171617            RTAssertReleasePanic(); \
    16181618        } \
     
    18291829#define AssertReleaseMsgFailed(a)  \
    18301830    do { \
    1831         RTAssertMsg1Weak((const char *)0, __LINE__, __FILE__, __PRETTY_FUNCTION__); \
     1831        RTAssertMsg1Weak((const char *)0, __LINE__, __FILE__, RT_GCC_EXTENSION __PRETTY_FUNCTION__); \
    18321832        RTAssertMsg2Weak a; \
    18331833        RTAssertReleasePanic(); \
     
    19401940        for (;;) \
    19411941        { \
    1942             RTAssertMsg1Weak((const char *)0, __LINE__, __FILE__, __PRETTY_FUNCTION__); \
     1942            RTAssertMsg1Weak((const char *)0, __LINE__, __FILE__, RT_GCC_EXTENSION __PRETTY_FUNCTION__); \
    19431943            RTAssertReleasePanic(); \
    19441944        } \
     
    19541954        for (;;) \
    19551955        { \
    1956             RTAssertMsg1Weak((const char *)0, __LINE__, __FILE__, __PRETTY_FUNCTION__); \
     1956            RTAssertMsg1Weak((const char *)0, __LINE__, __FILE__, RT_GCC_EXTENSION __PRETTY_FUNCTION__); \
    19571957            RTAssertMsg2Weak a; \
    19581958            RTAssertReleasePanic(); \
  • trunk/include/iprt/cdefs.h

    r55124 r55192  
    26382638
    26392639/** Source position. */
    2640 #define RT_SRC_POS         __FILE__, __LINE__, __PRETTY_FUNCTION__
     2640#define RT_SRC_POS         __FILE__, __LINE__, RT_GCC_EXTENSION __PRETTY_FUNCTION__
    26412641
    26422642/** Source position declaration. */
  • trunk/src/VBox/Additions/x11/vboxvideo/vboxvideo.h

    r55191 r55192  
    9191    vbvxMsg("\nAssertion failed!\n\n"); \
    9292    vbvxMsg("%s\n", #expr); \
    93     vbvxMsg("at %s (%s:%d)\n", __PRETTY_FUNCTION__, __FILE__, __LINE__); \
     93    vbvxMsg("at %s (%s:%d)\n", RT_GCC_EXTENSION __PRETTY_FUNCTION__, __FILE__, __LINE__); \
    9494    vbvxMsg out; \
    9595    vbvxAbortServer(); \
  • trunk/src/VBox/Additions/x11/vboxvideo/vboxvideo_dri.c

    r49696 r55192  
    182182    {
    183183        xf86DrvMsg(pScrn->scrnIndex, X_ERROR, "%s: preconditions failed\n",
    184                    __PRETTY_FUNCTION__);
     184                   RT_GCC_EXTENSION __PRETTY_FUNCTION__);
    185185        rc = FALSE;
    186186    }
  • trunk/src/VBox/Devices/Network/slirp/bsd/sys/mbuf.h

    r39085 r55192  
    6161}
    6262/* for non-gnu compilers */
    63 # define __func__ __FUNCTION__
     63# define __func__ RT_GCC_EXTENSION __FUNCTION__
    6464# ifndef __inline
    6565#  define __inline
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette