diff options
| author | Joel Klinghed <the_jk@opera.com> | 2015-08-04 16:47:14 +0200 |
|---|---|---|
| committer | Joel Klinghed <the_jk@opera.com> | 2015-08-04 16:47:14 +0200 |
| commit | 1ef9c463f1efc1adfb62e42ab3dd17e8c6394373 (patch) | |
| tree | 8b5d2f3cc4efabe1a1b5374a9d48fd8ef9d20187 /src/timespec.c | |
| parent | b41fddc7e8f5d41c928c1aef0e75973e33572918 (diff) | |
Remove warnings
Diffstat (limited to 'src/timespec.c')
| -rw-r--r-- | src/timespec.c | 3 |
1 files changed, 0 insertions, 3 deletions
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; |
