VirtualBox

Changeset 55192 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Apr 10, 2015 5:43:53 PM (10 years ago)
Author:
vboxsync
Message:

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

Location:
trunk/src/VBox
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • 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.

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