mirror of
https://github.com/systemd/systemd.git
synced 2025-01-13 17:18:18 +03: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 82a27ba8217d09e4fef4c9550f8b733d174c5705 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:
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 \
|
||||
|
Loading…
x
Reference in New Issue
Block a user