From 6990fb6bc6f9421a15a3e0b02909b7526cd4cbfc Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Wed, 27 Mar 2019 14:36:36 +0100 Subject: tree-wide: (void)ify a few unlink() and rmdir() Let's be helpful to static analyzers which care about whether we knowingly ignore return values. We do in these cases, since they are usually part of error paths. --- src/backlight/backlight.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/backlight') diff --git a/src/backlight/backlight.c b/src/backlight/backlight.c index 28a1a903d1..dfd6805398 100644 --- a/src/backlight/backlight.c +++ b/src/backlight/backlight.c @@ -412,7 +412,7 @@ static int run(int argc, char *argv[]) { const char *value; if (validate_device(device) == 0) { - unlink(saved); + (void) unlink(saved); return 0; } -- cgit v1.2.1