Skip to content

Commit 37979bb

Browse files
committed
Ignoring the ret value of gmtime_r
1 parent 2eb8144 commit 37979bb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cpr/cookies.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ const std::string Cookie::GetExpiresString() const {
3434
#ifdef _WIN32
3535
gmtime_s(&tm, &tt);
3636
#else
37-
// NOLINTNEXTLINE(misc-include-cleaner) False positive since <ctime> is included
37+
// NOLINTNEXTLINE(misc-include-cleaner,cert-err33-c) False positive since <ctime> is included. Also ignore the ret value here.
3838
gmtime_r(&tt, &tm);
3939
#endif
4040
ss << std::put_time(&tm, "%a, %d %b %Y %H:%M:%S GMT");

0 commit comments

Comments
 (0)