mirror of
https://github.com/systemd/systemd.git
synced 2026-08-03 06:30:30 +00:00
__attribute__((fallthrough)) only when -Wimplicit-fallthrough (#7448)
That is version 7 or greater
https://developers.redhat.com/blog/2017/03/10/wimplicit-fallthrough-in-gcc-7/
Fix regression of https://github.com/systemd/systemd/pull/7389
82a27ba821
on older gccs
bumping to re-run CI
upstream FAIL timed out
boot-smoke FAIL non-zero exit status 1
This commit is contained in:
committed by
Zbigniew Jędrzejewski-Szmek
parent
9b3f8e5968
commit
fb8e74a499
@@ -48,7 +48,11 @@
|
||||
#define _weakref_(x) __attribute__((weakref(#x)))
|
||||
#define _alignas_(x) __attribute__((aligned(__alignof(x))))
|
||||
#define _cleanup_(x) __attribute__((cleanup(x)))
|
||||
#if __GNUC__ >= 7
|
||||
#define _fallthrough_ __attribute__((fallthrough))
|
||||
#else
|
||||
#define _fallthrough_
|
||||
#endif
|
||||
|
||||
/* Temporarily disable some warnings */
|
||||
#define DISABLE_WARNING_DECLARATION_AFTER_STATEMENT \
|
||||
|
||||
Reference in New Issue
Block a user