[PATCH xts v2] xts5: Fix clang error - non-void function 'outfile' should return a value

Rhys Kidd rhyskidd at gmail.com
Fri Nov 25 02:54:14 UTC 2016


files.c:267:3: error: non-void function 'outfile' should return a value
      [-Wreturn-type]
                return;
                ^

v2: Correct declaration (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 ee88a40..a9198e1 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 32dd711..16df294 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);
-- 
2.9.3



More information about the xorg-devel mailing list