[PATCH/committed,02/20] sim: add ATTRIBUTE_FALLTHROUGH for local code
Commit Message
We'll replace various /* fall through */ comments so compilers can
actually understand what the code is doing.
---
sim/common/defs.h | 3 +++
sim/ppc/defs.h | 3 +++
2 files changed, 6 insertions(+)
@@ -25,6 +25,9 @@
/* Include gnulib's various configure tests. */
#include "gnulib/config.h"
+/* This comes from gnulib. Export it until ansidecl.h handles it. */
+#define ATTRIBUTE_FALLTHROUGH _GL_ATTRIBUTE_FALLTHROUGH
+
/* Reset macros that our config.h will provide. */
#undef PACKAGE
#undef PACKAGE_BUGREPORT
@@ -23,6 +23,9 @@
/* Include gnulib's various configure tests. */
#include "gnulib/config.h"
+/* This comes from gnulib. Export it until ansidecl.h handles it. */
+#define ATTRIBUTE_FALLTHROUGH _GL_ATTRIBUTE_FALLTHROUGH
+
/* Reset macros that our config.h will provide. */
#undef PACKAGE
#undef PACKAGE_BUGREPORT