X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=src%2Fcommon%2Futils.cpp;fp=src%2Fcommon%2Futils.cpp;h=93014627fe5162bf8d49c4813074debe3edf1ca7;hp=8aa4ff9f91efab9155858559f2685bf6cfd9d835;hb=411b31544f22b773b4aad6cdb81faa81dc05e641;hpb=4ff750609549a99f6b318ce600c42c90d4f2e480 diff --git a/src/common/utils.cpp b/src/common/utils.cpp index 8aa4ff9f9..93014627f 100644 --- a/src/common/utils.cpp +++ b/src/common/utils.cpp @@ -1194,7 +1194,10 @@ size_t utils_get_current_time_str(const char *format, char *dst, size_t len) /* Get date and time for session path */ time(&rawtime); timeinfo = localtime(&rawtime); + DIAGNOSTIC_PUSH + DIAGNOSTIC_IGNORE_FORMAT_NONLITERAL ret = strftime(dst, len, format, timeinfo); + DIAGNOSTIC_POP if (ret == 0) { ERR("Unable to strftime with format %s at dst %p of len %zu", format, dst, len);