Skip to content

Commit

Permalink
please R check
Browse files Browse the repository at this point in the history
  • Loading branch information
JanMarvin committed Jul 18, 2023
1 parent 9af315d commit 961e574
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions src/cryptography/cybozu/time.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -184,14 +184,14 @@ class Time {
#endif
if (!isOK) throw cybozu::Exception("time::toString") << time_;
#ifdef __GNUC__
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wformat-nonliteral"
/* #pragma GCC diagnostic push */
/* #pragma GCC diagnostic ignored "-Wformat-nonliteral" */
#endif
if (std::strftime(buf, sizeof(buf), format, &tm) == 0) {
throw cybozu::Exception("time::toString::too long") << format << time_;
}
#ifdef __GNUC__
#pragma GCC diagnostic pop
/* #pragma GCC diagnostic pop */
#endif
out += buf;
if (appendMsec) {
Expand Down
6 changes: 3 additions & 3 deletions src/cryptography/msoc/include/util.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -45,12 +45,12 @@ inline void dprintf(const char *format, ...)
va_list args;
va_start(args, format);
#ifdef __GNUC__
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wformat-nonliteral"
/*#pragma GCC diagnostic push*/
/*#pragma GCC diagnostic ignored "-Wformat-nonliteral"*/
#endif
vprintf(format, args);
#ifdef __GNUC__
#pragma GCC diagnostic pop
/*#pragma GCC diagnostic pop*/
#endif
va_end(args);
}
Expand Down

0 comments on commit 961e574

Please sign in to comment.