From a5506270bc42a950d94a05878d8adfc15cefb464 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= Date: Fri, 5 Jan 2018 16:39:31 +0100 Subject: Fix fall trough warning of gcc 7+ --- qtmips_machine/utils.h | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 qtmips_machine/utils.h (limited to 'qtmips_machine/utils.h') diff --git a/qtmips_machine/utils.h b/qtmips_machine/utils.h new file mode 100644 index 0000000..7d30364 --- /dev/null +++ b/qtmips_machine/utils.h @@ -0,0 +1,10 @@ +#ifndef UTILS_H +#define UTILS_H + +#if __GNUC__ >= 7 +#define FALLTROUGH __attribute__((fallthrough)); +#else +#define FALLTROUGH +#endif + +#endif // UTILS_H -- cgit v1.2.3