VirtualBox

Changeset 66086 in vbox


Ignore:
Timestamp:
Mar 14, 2017 12:51:14 PM (8 years ago)
Author:
vboxsync
Message:

iprt/cdefs.h: gcc 6.1 seems to be the cut-off for using [] arrays in C++ code w/o triggering pedantic warnings.

File:
1 edited

Legend:

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

    r66083 r66086  
    22972297 */
    22982298#if RT_MSC_PREREQ(RT_MSC_VER_VS2010) /** @todo Probably much much earlier. */ \
    2299  || (defined(__cplusplus) && RT_GNUC_PREREQ(6, 0)) /** @todo 5.4.0 doesn't like [] in C++ code. Figure out exactly when it started being okay with it and -std=?? effects. */ \
     2299 || (defined(__cplusplus) && RT_GNUC_PREREQ(6, 1)) \
    23002300 || defined(__WATCOMC__) /* openwatcom 1.9 supports it, we don't care about older atm. */
    23012301# define RT_FLEXIBLE_ARRAY
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