VirtualBox

Changeset 66854 in vbox


Ignore:
Timestamp:
May 10, 2017 10:14:30 AM (8 years ago)
Author:
vboxsync
Message:

iprt/cdefs: use the reliable foo[1] style for flexible arrays with gcc as the gcc folks decided to warn again for foo[] starting with gcc 7

File:
1 edited

Legend:

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

    r66851 r66854  
    23012301 */
    23022302#if RT_MSC_PREREQ(RT_MSC_VER_VS2005) /** @todo Probably much much earlier. */ \
    2303  || (defined(__cplusplus) && RT_GNUC_PREREQ(6, 1)) \
     2303 || (defined(__cplusplus) && RT_GNUC_PREREQ(6, 1) && !RT_GNUC_PREREQ(7, 0)) /* gcc-7 warns again */\
    23042304 || defined(__WATCOMC__) /* openwatcom 1.9 supports it, we don't care about older atm. */ \
    23052305 || RT_CLANG_PREREQ_EX(3, 4, 0) /* Only tested clang v3.4, support is probably older. */
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