From 31405eecbc0c194469c4546f49a8a6d0e7f84909 Mon Sep 17 00:00:00 2001 From: Ingo Schwarze Date: Wed, 26 Jul 2017 10:21:55 +0000 Subject: Cast the return value of chdir(2) to void. We already have a comment above explaining to human auditors why no error checking is needed here, so it's only fair to tell the compiler, too. Worried compiler reported by Michael . --- main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.c b/main.c index 9cb90363..e70e1a32 100644 --- a/main.c +++ b/main.c @@ -478,7 +478,7 @@ main(int argc, char *argv[]) parse(&curp, fd, *argv); else if (resp->form == FORM_SRC) { /* For .so only; ignore failure. */ - chdir(conf.manpath.paths[resp->ipath]); + (void)chdir(conf.manpath.paths[resp->ipath]); parse(&curp, fd, resp->file); } else passthrough(resp->file, fd, -- cgit