summaryrefslogtreecommitdiff
path: root/modules/timespec
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2017-10-29 16:22:41 -0700
committerPaul Eggert <eggert@cs.ucla.edu>2017-10-29 16:23:07 -0700
commitf466816e06ec3516567c3edcd0219bd1f9b736eb (patch)
tree31b830881aacc0cac7be07f716faa9cb715bcdb8 /modules/timespec
parentc1b1be5dc59f460f4249bb337987cc37dc2ed07f (diff)
downloadgnulib-f466816e06ec3516567c3edcd0219bd1f9b736eb.tar.gz
timespec: prefer ‘assume’ to ‘assure’
This avoids some runtime tests. The rest of the module makes similar assumptions and there is little point to testing here. * lib/timespec.h: Include verify.h instead of assure.h. (timespec_cmp): Use ‘assume’, not ‘assure’. Also, remove an unnecessary cast to ‘int’, as lots of other code in this module now causes -Wconversion to complain, and this is a problem with -Wconversion not with the code. * modules/timespec (Depends-on): Depend on ‘verify’, not ‘assure’.
Diffstat (limited to 'modules/timespec')
-rw-r--r--modules/timespec2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/timespec b/modules/timespec
index 01ab6add23..e6e151482f 100644
--- a/modules/timespec
+++ b/modules/timespec
@@ -7,9 +7,9 @@ lib/timespec.c
m4/timespec.m4
Depends-on:
-assure
extern-inline
time
+verify
configure.ac:
gl_TIMESPEC