diff options
author | 2022-11-23 08:10:52 +0100 | |
---|---|---|
committer | 2022-12-11 10:39:32 +0200 | |
commit | 0c432c6e270bf46229bb9b8b965b1f1b3b8cd548 (patch) | |
tree | 9e786b7586ee1b9f81e05f0fca9211ffdf8ea65e /net-irc/emech/files | |
parent | profiles/package.mask: mask posix-spawn for removal (diff) | |
download | gentoo-0c432c6e270bf46229bb9b8b965b1f1b3b8cd548.tar.gz gentoo-0c432c6e270bf46229bb9b8b965b1f1b3b8cd548.tar.bz2 gentoo-0c432c6e270bf46229bb9b8b965b1f1b3b8cd548.zip |
net-irc/emech: fix build for clang16
Closes: https://bugs.gentoo.org/876358
Closes: https://bugs.gentoo.org/731210
Signed-off-by: Pascal Jäger <pascal.jaeger@leimstift.de>
Closes: https://github.com/gentoo/gentoo/pull/28393
Signed-off-by: Joonas Niilola <juippis@gentoo.org>
Diffstat (limited to 'net-irc/emech/files')
-rw-r--r-- | net-irc/emech/files/emech-3.0.99_p20221123-fix-Wreturn-type.patch | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/net-irc/emech/files/emech-3.0.99_p20221123-fix-Wreturn-type.patch b/net-irc/emech/files/emech-3.0.99_p20221123-fix-Wreturn-type.patch new file mode 100644 index 000000000000..0413a61dcad8 --- /dev/null +++ b/net-irc/emech/files/emech-3.0.99_p20221123-fix-Wreturn-type.patch @@ -0,0 +1,34 @@ +QA warns about non-void functions returning no value. Both function are not used +anywhere in the code anyway. + +Pascal Jäger <pascal.jaeger@leimstift.de> (2022-11-23) + +--- a/src/spy.c ++++ b/src/spy.c +@@ -460,7 +460,7 @@ void end_redirect(void) + char *urlhost(const char *url) + { + char copy[strlen(url)]; +- const char *end,*beg,*dst; ++ char *end,*beg,*dst; + int n = 0; + + beg = end = url; +@@ -481,6 +481,7 @@ char *urlhost(const char *url) + end++; + } + stringcpy_n(copy,beg,(end-beg)); ++ return beg; + #ifdef DEBUG + debug("(urlhost) host = %s\n",copy); + #endif +--- a/src/toybox.c ++++ b/src/toybox.c +@@ -196,6 +196,7 @@ int read_bigcharset(char *fname) + int read_ascii(char *rest) + { + to_user_q(global_from,FMT_PLAIN,rest); ++ return (0); + } + + #ifdef TRIVIA |