summaryrefslogtreecommitdiffstats
path: root/src/basic/macro.h
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2019-07-17 12:27:33 +0200
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2019-07-17 12:27:33 +0200
commitcfec3117d42a1e44feb76a13dc07be2b2e9799ad (patch)
treec91b3efa6de898bb5d26d1cba34d0c56bfa40011 /src/basic/macro.h
parentMerge pull request #12675 from yuwata/network-set-dns (diff)
downloadsystemd-cfec3117d42a1e44feb76a13dc07be2b2e9799ad.tar.xz
systemd-cfec3117d42a1e44feb76a13dc07be2b2e9799ad.zip
basic/macro: drop do {} while(0) from assert_not_reached
log_assert_failed_unreachable is just a normal function call, no need to wrap it. https://github.com/systemd/systemd/issues/12997#issuecomment-510103988
Diffstat (limited to '')
-rw-r--r--src/basic/macro.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/basic/macro.h b/src/basic/macro.h
index 81add201fa..fb002d2172 100644
--- a/src/basic/macro.h
+++ b/src/basic/macro.h
@@ -344,9 +344,7 @@ static inline int __coverity_check__(int condition) {
#endif
#define assert_not_reached(t) \
- do { \
- log_assert_failed_unreachable(t, PROJECT_FILE, __LINE__, __PRETTY_FUNCTION__); \
- } while (false)
+ log_assert_failed_unreachable(t, PROJECT_FILE, __LINE__, __PRETTY_FUNCTION__)
#if defined(static_assert)
#define assert_cc(expr) \