Tweak WUFFS_BASE__FALLTHROUGH comment

This commit is contained in:
Nigel Tao committed 2021-06-28 10:07:01 +10:00
1 parent a0698fc1a2
commit 7f93a94e7a
3 files changed
+11 -11

No files matched your search

+4 -4
View File
@@ -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