From 1ef9c463f1efc1adfb62e42ab3dd17e8c6394373 Mon Sep 17 00:00:00 2001 From: Joel Klinghed Date: Tue, 4 Aug 2015 16:47:14 +0200 Subject: Remove warnings --- src/timespec.c | 3 --- 1 file changed, 3 deletions(-) (limited to 'src/timespec.c') diff --git a/src/timespec.c b/src/timespec.c index 42bc157..533f00d 100644 --- a/src/timespec.c +++ b/src/timespec.c @@ -195,7 +195,6 @@ void timespec_addms(struct timespec *ts, unsigned long ms) void timespec_add(struct timespec *ts, const struct timespec *add) { - assert(ts && add); ts->tv_nsec += add->tv_nsec; ts->tv_sec += ts->tv_nsec / 1000000000 + add->tv_sec; ts->tv_nsec = ts->tv_nsec % 1000000000; @@ -203,7 +202,6 @@ void timespec_add(struct timespec *ts, const struct timespec *add) int timespec_sub(struct timespec *ts, const struct timespec *sub) { - assert(ts && sub); if (ts->tv_sec < sub->tv_sec) { ts->tv_sec = sub->tv_sec - ts->tv_sec; @@ -255,7 +253,6 @@ int timespec_sub(struct timespec *ts, const struct timespec *sub) int timespec_cmp(const struct timespec *x, const struct timespec *y) { - assert(x && y); if (x->tv_sec < y->tv_sec) { return -1; -- cgit v1.2.3-70-g09d2