mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-23 16:52:18 +01:00
Tweak WUFFS_BASE__FALLTHROUGH comment
This commit is contained in:
1 parent
a0698fc1a2
commit
7f93a94e7a
3 files changed
+11
-11
No files matched your search
@@ -10111,10 +10111,10 @@ extern "C" {
|
||||
|
||||
// Denote intentional fallthroughs for -Wimplicit-fallthrough.
|
||||
//
|
||||
// As noted on
|
||||
// https:// gcc.gnu.org/onlinedocs/cpp/_005f_005fhas_005fattribute.html ,
|
||||
// combining the two tests in one conditional would not be portable.
|
||||
#if defined __has_attribute
|
||||
// The two #if lines are deliberately separate. Combining the two conditions
|
||||
// into a single "#if foo && bar" line would not be portable. See
|
||||
// https://gcc.gnu.org/onlinedocs/cpp/_005f_005fhas_005fattribute.html
|
||||
#if defined(__has_attribute)
|
||||
#if __has_attribute(fallthrough)
|
||||
#define WUFFS_BASE__FALLTHROUGH __attribute__((fallthrough))
|
||||
#else
|
||||
|
||||
Reference in new issue
Block a user