Skip to content

Commit d1667f8

Browse files
committed
snprintf_ch: discard return value from fprintf
clang-tidy complains about the unused return value of fprintf, which is mostly useless here
1 parent 7fc5380 commit d1667f8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/utils/macros.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@
107107
do { /* NOLINT(cppcoreguidelines-avoid-do-while) */ \
108108
if (snprintf(str, sizeof str, __VA_ARGS__) >= \
109109
(int) sizeof str) { \
110-
fprintf(stderr, \
110+
(void) fprintf(stderr, \
111111
"\n%s:%d: %s: snprintf truncates %s (%d B " \
112112
"needed)!\n\n", \
113113
__FILE__, __LINE__, __func__, #str, \

0 commit comments

Comments
 (0)