diff options
author | V3n3RiX <venerix@koprulu.sector> | 2022-10-07 13:23:59 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2022-10-07 13:23:59 +0100 |
commit | 27a61babf89122aeb64d52f4ea8f6f068b928da4 (patch) | |
tree | 56cc72dcfb76f622af8103ed350c61f432d5f686 /app-arch/arc/files | |
parent | bbdc49d5ccd04563006a608c87c870413f75057e (diff) |
gentoo auto-resync : 07:10:2022 - 13:23:59
Diffstat (limited to 'app-arch/arc/files')
-rw-r--r-- | app-arch/arc/files/arc-5.21p-variadic-arcdie.patch | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/app-arch/arc/files/arc-5.21p-variadic-arcdie.patch b/app-arch/arc/files/arc-5.21p-variadic-arcdie.patch new file mode 100644 index 000000000000..787748f6d3fa --- /dev/null +++ b/app-arch/arc/files/arc-5.21p-variadic-arcdie.patch @@ -0,0 +1,38 @@ +Convert arcdie to variadic function, which solves the issue with +-Werror=implicit-int enabled. + +Bug: https://bugs.gentoo.org/870517 + +diff --git a/arcmisc.c b/arcmisc.c +index ea12b41..3d6272e 100644 +--- a/arcmisc.c ++++ b/arcmisc.c +@@ -3,6 +3,7 @@ + * $Header: /cvsroot/arc/arc/arcmisc.c,v 1.4 2005/10/09 01:38:22 highlandsun Exp $ + */ + ++#include <stdarg.h> + #include <stdio.h> + #include <ctype.h> + #include "arc.h" +@@ -223,11 +224,14 @@ upper(string) + } + /* VARARGS1 */ + VOID +-arcdie(s, arg1, arg2, arg3) +- char *s; ++arcdie(char * s, ...) + { ++ va_list ap; ++ + fprintf(stderr, "ARC: "); +- fprintf(stderr, s, arg1, arg2, arg3); ++ va_start(ap, s); ++ vfprintf(stderr, s, ap); ++ va_end(ap); + fprintf(stderr, "\n"); + #if UNIX + perror("UNIX"); +-- +2.35.1 + |