VirtualBox

Changeset 95419 in vbox for trunk/include


Ignore:
Timestamp:
Jun 29, 2022 1:40:35 AM (3 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
152021
Message:

iprt/cdefs.h: Clang does not accept attribute((falltrhough)) till 12.x from my experiments, and judging from google results this is the case on all platforms. The previous 4.0 min-requirement must've been a copy&paste result from two lines up rather than any kind of research. bugref:10247

File:
1 edited

Legend:

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

    r95413 r95419  
    13541354#if RT_CLANG_PREREQ(4, 0) && RT_CPLUSPLUS_PREREQ(201100)
    13551355# define RT_FALL_THROUGH()      [[clang::fallthrough]]
    1356 #elif (RT_CLANG_PREREQ(4, 0) && defined(RT_OS_LINUX)) || RT_GNUC_PREREQ(7, 0)
     1356#elif RT_CLANG_PREREQ(12, 0) || RT_GNUC_PREREQ(7, 0)
    13571357# define RT_FALL_THROUGH()      __attribute__((__fallthrough__))
    13581358#else
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