From 316ac78e78b7ff75aa914d9b34c086cef9ef843c Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Mon, 27 Oct 2014 21:01:05 +0000 Subject: coverity#982185 silence Unchecked return value from library and coverity#982184 Unchecked return value from library Change-Id: I4b4ba39abc4c008b68cfc1498ee56ac9c4934c98 --- soltools/mkdepend/main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'soltools') diff --git a/soltools/mkdepend/main.c b/soltools/mkdepend/main.c index 6cbcf128f55b..9c63e0e629e3 100644 --- a/soltools/mkdepend/main.c +++ b/soltools/mkdepend/main.c @@ -194,7 +194,7 @@ int main(int argc, char **argv) nargc = 1; if ((afd = open(argv[1]+1, O_RDONLY)) < 0) fatalerr("cannot open \"%s\"\n", argv[1]+1); - fstat(afd, &ast); + (void)fstat(afd, &ast); args = (char *)malloc(ast.st_size + 1); if ((ast.st_size = read(afd, args, (size_t) ast.st_size)) < 0) fatalerr("failed to read %s\n", argv[1]+1); @@ -488,7 +488,7 @@ struct filepointer *getfile(char *file) *content->f_p = '\0'; return(content); } - fstat(fd, &st); + (void)fstat(fd, &st); size_backup = st.st_size; malloc_size = size_backup; -- cgit