diff options
author | David Gibson <david@gibson.dropbear.id.au> | 2022-09-28 14:33:13 +1000 |
---|---|---|
committer | Stefano Brivio <sbrivio@redhat.com> | 2022-09-29 12:21:45 +0200 |
commit | 798b7ff1c0f7e155ccb3a1fa9bbcc69f750bafd9 (patch) | |
tree | 37dc9c189dffc4e7f00f9d51a9bd8ba1b640f1c0 /util.c | |
parent | 84fec4e998b625f36f2d89dd9784ed4bb393631a (diff) | |
download | passt-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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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"); \ |