aboutgitcodebugslistschat
path: root/util.c
diff options
context:
space:
mode:
authorDavid Gibson <david@gibson.dropbear.id.au>2022-09-28 14:33:13 +1000
committerStefano Brivio <sbrivio@redhat.com>2022-09-29 12:21:45 +0200
commit798b7ff1c0f7e155ccb3a1fa9bbcc69f750bafd9 (patch)
tree37dc9c189dffc4e7f00f9d51a9bd8ba1b640f1c0 /util.c
parent84fec4e998b625f36f2d89dd9784ed4bb393631a (diff)
downloadpasst-798b7ff1c0f7e155ccb3a1fa9bbcc69f750bafd9.tar
passt-798b7ff1c0f7e155ccb3a1fa9bbcc69f750bafd9.tar.gz
passt-798b7ff1c0f7e155ccb3a1fa9bbcc69f750bafd9.tar.bz2
passt-798b7ff1c0f7e155ccb3a1fa9bbcc69f750bafd9.tar.lz
passt-798b7ff1c0f7e155ccb3a1fa9bbcc69f750bafd9.tar.xz
passt-798b7ff1c0f7e155ccb3a1fa9bbcc69f750bafd9.tar.zst
passt-798b7ff1c0f7e155ccb3a1fa9bbcc69f750bafd9.zip
clang-tidy: Suppress warning about unchecked error in logfn macro
clang-tidy complains that we're not checking the result of vfprintf in logfn(). There's not really anything we can do if this fails here, so just suppress the error with a cast to void. Signed-off-by: David Gibson <david@gibson.dropbear.id.au> Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
Diffstat (limited to 'util.c')
-rw-r--r--util.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/util.c b/util.c
index 8d26561..6b86ead 100644
--- a/util.c
+++ b/util.c
@@ -57,7 +57,7 @@ void name(const char *format, ...) { \
if (setlogmask(0) & LOG_MASK(LOG_DEBUG) || \
setlogmask(0) == LOG_MASK(LOG_EMERG)) { \
va_start(args, format); \
- vfprintf(stderr, format, args); \
+ (void)vfprintf(stderr, format, args); \
va_end(args); \
if (format[strlen(format)] != '\n') \
fprintf(stderr, "\n"); \