Skip to content

Commit

Permalink
Ignoring the ret value of gmtime_r
Browse files Browse the repository at this point in the history
  • Loading branch information
COM8 committed Nov 14, 2024
1 parent 2eb8144 commit 37979bb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cpr/cookies.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ const std::string Cookie::GetExpiresString() const {
#ifdef _WIN32
gmtime_s(&tm, &tt);
#else
// NOLINTNEXTLINE(misc-include-cleaner) False positive since <ctime> is included
// NOLINTNEXTLINE(misc-include-cleaner,cert-err33-c) False positive since <ctime> is included. Also ignore the ret value here.
gmtime_r(&tt, &tm);
#endif
ss << std::put_time(&tm, "%a, %d %b %Y %H:%M:%S GMT");
Expand Down

0 comments on commit 37979bb

Please sign in to comment.