From: Even Rouault Date: Tue, 16 Aug 2022 09:11:55 +0000 (+0200) Subject: get_time_seed(): silence warning emitted by Coverity Scan static analyzer X-Git-Tag: json-c-0.17-20230812~31^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F784%2Fhead;p=thirdparty%2Fjson-c.git 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) --- diff --git a/random_seed.c b/random_seed.c index 7945824c..5b2155db 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