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:
+2
-2
@@ -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) \
|
||||
|
||||
Reference in New Issue
Block a user