diff options
author | Karel Kočí <cynerd@email.cz> | 2018-01-05 16:39:31 +0100 |
---|---|---|
committer | Karel Kočí <cynerd@email.cz> | 2018-01-05 16:39:31 +0100 |
commit | a5506270bc42a950d94a05878d8adfc15cefb464 (patch) | |
tree | 9a54528b6a0f8f64572e56de4eafe5576f10a4e9 /qtmips_machine/utils.h | |
parent | 6528cdb58abcbe432dd387d565c9a1157f90795a (diff) | |
download | qtmips-a5506270bc42a950d94a05878d8adfc15cefb464.tar.gz qtmips-a5506270bc42a950d94a05878d8adfc15cefb464.tar.bz2 qtmips-a5506270bc42a950d94a05878d8adfc15cefb464.zip |
Fix fall trough warning of gcc 7+
Diffstat (limited to 'qtmips_machine/utils.h')
-rw-r--r-- | qtmips_machine/utils.h | 10 |
1 files changed, 10 insertions, 0 deletions
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 |