Drop trailing slash from assert_cc() definition

We use assert_cc(...); almost everywhere. Let's always require that.

https://github.com/systemd/systemd/issues/12997#issuecomment-510103988
This commit is contained in:
Zbigniew Jędrzejewski-Szmek
2019-07-17 12:57:20 +02:00
parent cfec3117d4
commit ab1a1ba5dc
6 changed files with 8 additions and 8 deletions
+2 -2
View File
@@ -348,12 +348,12 @@ static inline int __coverity_check__(int condition) {
#if defined(static_assert)
#define assert_cc(expr) \
static_assert(expr, #expr);
static_assert(expr, #expr)
#else
#define assert_cc(expr) \
struct CONCATENATE(_assert_struct_, __COUNTER__) { \
char x[(expr) ? 0 : -1]; \
};
}
#endif
#define assert_return(expr, r) \