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 | 833a3b2f0c74244e54e78e405968d466c8ea1bfc (patch) | |
tree | 2ec788a233a7f42500a52d90fcede10c9de455da /main.c | |
parent | 2c791ce15b42a09cc76b868e3c42df10c8dc94b4 (diff) | |
download | mandoc-833a3b2f0c74244e54e78e405968d466c8ea1bfc.tar.gz mandoc-833a3b2f0c74244e54e78e405968d466c8ea1bfc.tar.zst mandoc-833a3b2f0c74244e54e78e405968d466c8ea1bfc.zip |
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>.
Diffstat (limited to 'main.c')
-rw-r--r-- | main.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1,4 +1,4 @@ -/* $Id: main.c,v 1.300 2017/07/20 15:26:41 schwarze Exp $ */ +/* $Id: main.c,v 1.301 2017/07/26 10:21:55 schwarze Exp $ */ /* * Copyright (c) 2008-2012 Kristaps Dzonsons <kristaps@bsd.lv> * Copyright (c) 2010-2012, 2014-2017 Ingo Schwarze <schwarze@openbsd.org> @@ -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, |