handle -Wimplicit-fallthrough=
This commit is contained in:
parent
59feab991b
commit
35cb66aa2b
|
@ -549,9 +549,6 @@ config_new(void)
|
||||||
return config;
|
return config;
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifndef EINA_FALLTHROUGH
|
|
||||||
#define EINA_FALLTHROUGH
|
|
||||||
#endif
|
|
||||||
|
|
||||||
Config *
|
Config *
|
||||||
config_load(const char *key)
|
config_load(const char *key)
|
||||||
|
@ -654,6 +651,7 @@ config_load(const char *key)
|
||||||
/*pass through*/
|
/*pass through*/
|
||||||
case 16:
|
case 16:
|
||||||
config->shine = 255;
|
config->shine = 255;
|
||||||
|
EINA_FALLTHROUGH;
|
||||||
/*pass through*/
|
/*pass through*/
|
||||||
case CONF_VER: /* 17 */
|
case CONF_VER: /* 17 */
|
||||||
config->version = CONF_VER;
|
config->version = CONF_VER;
|
||||||
|
|
|
@ -19,4 +19,16 @@ Eina_Bool link_is_email(const char *str);
|
||||||
#define casestartswith(str, constref) \
|
#define casestartswith(str, constref) \
|
||||||
(!strncasecmp(str, constref, sizeof(constref) - 1))
|
(!strncasecmp(str, constref, sizeof(constref) - 1))
|
||||||
|
|
||||||
|
#if (ELM_VERSION_MAJOR == 1) && (ELM_VERSION_MINOR < 20)
|
||||||
|
# if __GNUC__ >= 7
|
||||||
|
# define EINA_FALLTHROUGH __attribute__ ((fallthrough));
|
||||||
|
# else
|
||||||
|
# define EINA_FALLTHROUGH
|
||||||
|
# endif
|
||||||
|
#else
|
||||||
|
# ifndef EINA_FALLTHROUGH
|
||||||
|
# define EINA_FALLTHROUGH
|
||||||
|
# endif
|
||||||
|
#endif
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue