We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0040f0f commit 40fefb2Copy full SHA for 40fefb2
compat.h
@@ -774,7 +774,7 @@ struct module *find_module(const char *name)
774
/* Copy from 294f69e662d1 ("compiler_attributes.h: Add 'fallthrough' pseudo
775
* keyword for switch/case use") */
776
#ifndef fallthrough
777
-# if __has_attribute(__fallthrough__)
+# if defined __has_attribute && __has_attribute(__fallthrough__)
778
# define fallthrough __attribute__((__fallthrough__))
779
# else
780
# define fallthrough do {} while (0) /* fallthrough */
0 commit comments