From 1df04509a4bf1f03df74e334f45b81c100469e04 Mon Sep 17 00:00:00 2001 From: Markus Koch Date: Sat, 21 May 2016 22:02:09 +0200 Subject: [PATCH] [vcom] Bugfix where non-source error/warnings would not be displayed --- main.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/main.c b/main.c index 213ed51..0b74b8b 100644 --- a/main.c +++ b/main.c @@ -82,7 +82,7 @@ int run_ghdl(char *command, ...) { char *start; char *ptr; int arrc; - int fgetret; + int i; va_list argptr; va_start(argptr, command); @@ -141,7 +141,11 @@ int run_ghdl(char *command, ...) { printf("** Warning: %s(%s): (ghdl) %s\n", arr[0], arr[1], arr[4]); } else { - printf("** ghdl: %s\n", buf); + printf("** ghdl: "); + for (i = 0; i < arrc; i++) { + printf("%s", arr[i]); + } + printf("\n"); } fflush(stdout); }