diff options
author | Ingo Schwarze <schwarze@openbsd.org> | 2017-07-26 10:21:55 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@openbsd.org> | 2017-07-26 10:21:55 +0000 |
commit | 31405eecbc0c194469c4546f49a8a6d0e7f84909 (patch) | |
tree | 631b1dce9917d0b0e8e951203633880954a3e0ad | |
parent | 73122e8abd101d51395e543650c01368b460423a (diff) | |
download | mandoc-31405eecbc0c194469c4546f49a8a6d0e7f84909.tar.gz |
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 <Stapelberg at debian>.
-rw-r--r-- | main.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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, |