Index: src/base/platform/platform-freebsd.cc |
diff --git a/src/base/platform/platform-freebsd.cc b/src/base/platform/platform-freebsd.cc |
index 3b8f3db781796f712552b0b469dcd3532aaca888..b279e0c9268fff97066ee72cfe33a84f6353a923 100644 |
--- a/src/base/platform/platform-freebsd.cc |
+++ b/src/base/platform/platform-freebsd.cc |
@@ -39,7 +39,7 @@ namespace base { |
const char* OS::LocalTimezone(double time, TimezoneCache* cache) { |
if (std::isnan(time)) return ""; |
time_t tv = static_cast<time_t>(std::floor(time/msPerSecond)); |
- struct tm* t = localtime(&tv); |
+ struct tm* t = localtime(&tv); // NOLINT(runtime/threadsafe_fn) |
if (NULL == t) return ""; |
return t->tm_zone; |
} |
@@ -47,7 +47,7 @@ const char* OS::LocalTimezone(double time, TimezoneCache* cache) { |
double OS::LocalTimeOffset(TimezoneCache* cache) { |
time_t tv = time(NULL); |
- struct tm* t = localtime(&tv); |
+ struct tm* t = localtime(&tv); // NOLINT(runtime/threadsafe_fn) |
// tm_gmtoff includes any daylight savings offset, so subtract it. |
return static_cast<double>(t->tm_gmtoff * msPerSecond - |
(t->tm_isdst > 0 ? 3600 * msPerSecond : 0)); |