tests: set C11, enable pedantic warnings, fix GCC and Clang warnings

This commit is contained in:
Tibor Nagy
2019-02-20 15:04:47 +01:00
parent 1af4eb7ec0
commit 7ee59d2fdb
15 changed files with 43 additions and 29 deletions
+3 -3
View File
@@ -14,10 +14,10 @@
(t)->tv_sec = 0, \
(t)->tv_usec = 0 \
)
#define timerisset(t) (t)->tv_sec || (t)->tv_usec
#define timercmp(x,y,op) (x)->tv_sec == (y)->tv_sec ? \
#define timerisset(t) ((t)->tv_sec || (t)->tv_usec)
#define timercmp(x,y,op) ((x)->tv_sec == (y)->tv_sec ? \
(x)->tv_usec op (y)->tv_usec \
: \
(x)->tv_sec op (y)->tv_sec
(x)->tv_sec op (y)->tv_sec)
#endif