diff options
author | Mattias Andrée <maandree@kth.se> | 2020-06-21 10:24:43 +0200 |
---|---|---|
committer | Mattias Andrée <maandree@kth.se> | 2020-06-21 10:24:43 +0200 |
commit | 29e861a1ed5408648bcceea5db52c15b3949097f (patch) | |
tree | 09a73af9ffd8674304720cb6f58970b9717d7a5f /print.c | |
parent | #define SIGCLD if missing, needed for musl (diff) | |
download | sctrace-29e861a1ed5408648bcceea5db52c15b3949097f.tar.gz sctrace-29e861a1ed5408648bcceea5db52c15b3949097f.tar.bz2 sctrace-29e861a1ed5408648bcceea5db52c15b3949097f.tar.xz |
Add string parameter to _Static_assert use, required by C11
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to '')
-rw-r--r-- | print.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -32,7 +32,7 @@ #define FLAG(FLAG)\ do {\ - _Static_assert((FLAG) != 0);\ + _Static_assert((FLAG) != 0, #FLAG" is 0 and must not be included");\ if (flags & (FLAG)) {\ p = stpcpy(p, "|"#FLAG);\ flags ^= (FLAG);\ @@ -46,7 +46,7 @@ } while (0) #define FLAGS_END_DEFAULT(FLAG)\ - _Static_assert((FLAG) == 0);\ + _Static_assert((FLAG) == 0, #FLAG" is not 0 and cannot be the default");\ if (!flags && !*buf)\ sprintf(p, "|%s", #FLAG);\ else if (flags || !*buf)\ |