shithub: rgbds

Download patch

ref: 7c895f8a1b02e433f9790d43f1376ae163b3dbe8
parent: 38bda7e1bb91586e20f41cd52254a49b2a549d5e
author: ISSOtm <[email protected]>
date: Fri Jul 31 14:22:21 EDT 2020

Fix diagnostic formatting

Missing colon and space after the file stack

--- a/src/asm/warning.c
+++ b/src/asm/warning.c
@@ -213,7 +213,7 @@
 	va_list args;
 
 	va_start(args, fmt);
-	printDiag(fmt, args, "ERROR: ", "\n    ", NULL);
+	printDiag(fmt, args, "ERROR: ", ":\n    ", NULL);
 	va_end(args);
 	nbErrors++;
 }
@@ -223,7 +223,7 @@
 	va_list args;
 
 	va_start(args, fmt);
-	printDiag(fmt, args, "FATAL: ", "\n    ", NULL);
+	printDiag(fmt, args, "FATAL: ", ":\n    ", NULL);
 	va_end(args);
 
 	exit(1);
@@ -241,7 +241,7 @@
 		return;
 
 	case WARNING_ERROR:
-		printDiag(fmt, args, "ERROR: ", "[-Werror=%s]\n    ", flag);
+		printDiag(fmt, args, "ERROR: ", ": [-Werror=%s]\n    ", flag);
 		va_end(args);
 		return;
 
@@ -253,7 +253,7 @@
 		break;
 	}
 
-	printDiag(fmt, args, "warning: ", "[-W%s]\n    ", flag);
+	printDiag(fmt, args, "warning: ", ": [-W%s]\n    ", flag);
 
 	va_end(args);
 }