[vcom] Bugfix where non-source error/warnings would not be displayed

This commit is contained in:
Markus Koch 2016-05-21 22:02:09 +02:00
parent 710ad3cb01
commit 1df04509a4
1 changed files with 6 additions and 2 deletions

8
main.c
View File

@ -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);
}