From 6f2e907daed44da42f94b869c817fb63c2eafd1c Mon Sep 17 00:00:00 2001 From: Rhys Kidd Date: Thu, 24 Nov 2016 21:54:14 -0500 Subject: xts5: Fix clang error - non-void function 'outfile' should return a value files.c:267:3: error: non-void function 'outfile' should return a value [-Wreturn-type] return; ^ v2: Correct declaration (Peter Hutterer) Signed-off-by: Peter Hutterer --- xts5/src/bin/mc/files.c | 2 +- xts5/src/bin/mc/mcproto.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/xts5/src/bin/mc/files.c b/xts5/src/bin/mc/files.c index ee88a400..a9198e13 100644 --- a/xts5/src/bin/mc/files.c +++ b/xts5/src/bin/mc/files.c @@ -236,7 +236,7 @@ char *tmpfile; * Combine all the files in the right order onto * stdout. */ -outfile(fp) +void outfile(fp) FILE *fp; { static FILE *fout; diff --git a/xts5/src/bin/mc/mcproto.h b/xts5/src/bin/mc/mcproto.h index 32dd7115..16df2949 100644 --- a/xts5/src/bin/mc/mcproto.h +++ b/xts5/src/bin/mc/mcproto.h @@ -105,7 +105,7 @@ void mepcomment(char *buf); FILE *nextfile(struct mclist *sources); void outcopy(char *file); FILE *cretmpfile(char *file, char **crefile); -int outfile(FILE *fp); +void outfile(FILE *fp); int remfiles(void); int includefile(char *file, char *bp); void filetemp(char *name); -- cgit v1.2.3