projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
configure: enable -Wformat=2
[lttng-tools.git]
/
src
/
common
/
utils.cpp
diff --git
a/src/common/utils.cpp
b/src/common/utils.cpp
index 8aa4ff9f91efab9155858559f2685bf6cfd9d835..93014627fe5162bf8d49c4813074debe3edf1ca7 100644
(file)
--- 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);
/* Get date and time for session path */
time(&rawtime);
timeinfo = localtime(&rawtime);
+ DIAGNOSTIC_PUSH
+ DIAGNOSTIC_IGNORE_FORMAT_NONLITERAL
ret = strftime(dst, len, format, timeinfo);
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);
if (ret == 0) {
ERR("Unable to strftime with format %s at dst %p of len %zu", format,
dst, len);
This page took
0.023426 seconds
and
4
git commands to generate.