summaryrefslogtreecommitdiff
path: root/src/bin/utils.h
diff options
context:
space:
mode:
authorBoris Faure <billiob@gmail.com>2017-11-12 00:30:25 +0100
committerBoris Faure <billiob@gmail.com>2017-11-12 00:30:25 +0100
commit35cb66aa2bc9b81da68ce1b407062d831680f480 (patch)
treeffb8d869f337f32944f12034d7000f1db4031219 /src/bin/utils.h
parent59feab991b75c2651560ab72a3c7ae218b25d310 (diff)
handle -Wimplicit-fallthrough=
Diffstat (limited to 'src/bin/utils.h')
-rw-r--r--src/bin/utils.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/bin/utils.h b/src/bin/utils.h
index 688dd37..cf25322 100644
--- a/src/bin/utils.h
+++ b/src/bin/utils.h
@@ -19,4 +19,16 @@ Eina_Bool link_is_email(const char *str);
19#define casestartswith(str, constref) \ 19#define casestartswith(str, constref) \
20 (!strncasecmp(str, constref, sizeof(constref) - 1)) 20 (!strncasecmp(str, constref, sizeof(constref) - 1))
21 21
22#if (ELM_VERSION_MAJOR == 1) && (ELM_VERSION_MINOR < 20)
23# if __GNUC__ >= 7
24# define EINA_FALLTHROUGH __attribute__ ((fallthrough));
25# else
26# define EINA_FALLTHROUGH
27# endif
28#else
29# ifndef EINA_FALLTHROUGH
30# define EINA_FALLTHROUGH
31# endif
32#endif
33
22#endif 34#endif