diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2022-09-13 13:11:12 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2022-09-13 17:14:26 +0200 |
commit | 2c8ced01216096dd03a4143fe41b4c5653deb67a (patch) | |
tree | 6d273f2a697e3d251a678d66703f989ea963d626 /sal | |
parent | fa7da09ad4afef8d6ae2dc809c5b9f059a9974b1 (diff) |
cid#1509290, cid#1509240: Silence "Use of 32-bit time_t (Y2K38_SAFETY)" for now
We'll eventually need to do something about the 32 bit TimeValue::Seconds, but
as it is unsigned we should be fine for another 80 years (until "06:28:15 UTC on
Sunday, 7 February 2106", according to
<https://en.wikipedia.org/wiki/Year_2038_problem#Solutions>).
Change-Id: I74e680be0b2f0ef8cd84d6bc0faef436efc8d3cd
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/139859
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'sal')
-rw-r--r-- | sal/osl/unx/time.cxx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sal/osl/unx/time.cxx b/sal/osl/unx/time.cxx index a77015614e74..d6a2ca33ba6c 100644 --- a/sal/osl/unx/time.cxx +++ b/sal/osl/unx/time.cxx @@ -170,6 +170,8 @@ sal_Bool SAL_CALL osl_getTimeValueFromDateTime( const oslDateTime* pDateTime, Ti bias = aTime.tm_isdst > 0 ? timezone - 3600 : timezone; #endif + // coverity[store_truncates_time_t] - TODO: sal_uInt32 TimeValue::Seconds is only large + // enough for integer time_t values < 2^32 representing dates until year 2106: pTimeVal->Seconds = nSeconds; pTimeVal->Nanosec = pDateTime->NanoSeconds; |