diff options
author | Even Rouault <even.rouault@spatialys.com> | 2022-08-16 11:11:55 +0200 |
---|---|---|
committer | Even Rouault <even.rouault@spatialys.com> | 2022-08-16 11:11:58 +0200 |
commit | 57ea393004fd25c4c717a1b8829fa9ff9d6cffdd (patch) | |
tree | 1f36f4c2f60b56fbcca3c07ac6cb452592e2c9cf | |
parent | 9417f4e72658138dbd947cac8befa149245d5741 (diff) | |
download | json-c-57ea393004fd25c4c717a1b8829fa9ff9d6cffdd.tar.gz |
get_time_seed(): silence warning emitted by Coverity Scan static analyzer
It warns about the return of time() being truncated to 32 bit, which is
not an issue here.
(this warning was emitted because of the https://github.com/OSGeo/gdal
project embedding a copy of libjson-c and running Coverity Scan
analysis)
-rw-r--r-- | random_seed.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/random_seed.c b/random_seed.c index 7945824..5b2155d 100644 --- a/random_seed.c +++ b/random_seed.c @@ -310,6 +310,7 @@ static int get_time_seed(void) { DEBUG_SEED("get_time_seed"); + /* coverity[store_truncates_time_t] */ return (unsigned)time(NULL) * 433494437; } #endif |