| 1 |
Fromscip-debian debian kcc 2.3+really-0.1 kcc/patches/`0001-Fix-build-failure-with-recent-gcc.patch`#From.: Hideki Yamane <[email protected]scip-debian . . . identity/`[email protected]`.> |
| 2 |
Datescip-debian debian kcc 2.3+really-0.1 kcc/patches/`0001-Fix-build-failure-with-recent-gcc.patch`#Date.: Tue, 24 Nov 2020 09:58:00 +0900 |
| 3 |
Subjectscip-debian debian kcc 2.3+really-0.1 kcc/patches/`0001-Fix-build-failure-with-recent-gcc.patch`#Subject.: Fix build failure with recent gcc |
| 4 |
|
| 5 |
--- |
| 6 |
kcc.c | 11 +++++------ |
| 7 |
1 file changed, 5 insertions(+), 6 deletions(-) |
| 8 |
|
| 9 |
diff --git a/kcc.cscip-debian debian kcc 2.3+really-0.1 kcc/upstream/`kcc.c`: b/kcc.cscip-debian debian kcc 2.3+really-0.1 kcc/upstream/`kcc.c`: |
| 10 |
index 1e7c630..cf01ed0 100644 |
| 11 |
--- a/kcc.c |
| 12 |
+++ b/kcc.c |
| 13 |
@@ -134,7 +134,7 @@ extern unsigned short katakana[]; |
| 14 |
extern unsigned short hiragana[]; |
| 15 |
unsigned short *kanatbl = katakana; |
| 16 |
|
| 17 |
|
| 18 |
+void error(char *fmt, ...); |
| 19 |
|
| 20 |
/********************************************************************** |
| 21 |
* * |
| 22 |
@@ -364,16 +364,15 @@ main(c, v) |
| 23 |
NAME |
| 24 |
error - print formatted error message on stderr and die |
| 25 |
---------------------------------------------------------------------*/ |
| 26 |
|
| 27 |
+#include <stdarg.h> |
| 28 |
|
| 29 |
|
| 30 |
|
| 31 |
+void error(char *fmt, ...) |
| 32 |
{ |
| 33 |
va_list args; |
| 34 |
|
| 35 |
|
| 36 |
+ va_start(args, fmt); |
| 37 |
fprintf(stderr, "%s: ", progname); |
| 38 |
|
| 39 |
+ vfprintf(stderr, fmt, args); |
| 40 |
putc('\n', stderr); |
| 41 |
va_end(args); |
| 42 |
exit(1); |