shithub: rgbds

Download patch

ref: 24439003f3dd4e55251d8d3271a810dc57ec7de5
parent: 3c43cc14d9c043ac84c8bb68099c98f4d7bf87f4
author: AntonioND <[email protected]>
date: Wed Apr 5 19:29:37 EDT 2017

Remove newlines from warning message strings

Signed-off-by: AntonioND <[email protected]>

--- a/src/asm/asmy.y
+++ b/src/asm/asmy.y
@@ -1286,7 +1286,7 @@
 					{
 						out_AbsByte(0xE9);
 						if( nPass==1 )
-							warning("'JP [HL]' is obsolete, use 'JP HL' instead.\n");
+							warning("'JP [HL]' is obsolete, use 'JP HL' instead.");
 					}
 				|	T_Z80_JP T_MODE_HL
 					{ out_AbsByte(0xE9); }
@@ -1304,7 +1304,7 @@
 					{
 						out_AbsByte(0x0A|(2<<4));
 						if( nPass==1 )
-							warning("'LDI A,HL' is obsolete, use 'LDI A,[HL]' or 'LD A,[HL+] instead.\n");
+							warning("'LDI A,HL' is obsolete, use 'LDI A,[HL]' or 'LD A,[HL+] instead.");
 					}
 				|	T_Z80_LDI T_MODE_A comma T_MODE_HL_IND
 					{ out_AbsByte(0x0A|(2<<4)); }
@@ -1316,7 +1316,7 @@
 					{
 						out_AbsByte(0x0A|(3<<4));
 						if( nPass==1 )
-							warning("'LDD A,HL' is obsolete, use 'LDD A,[HL]' or 'LD A,[HL-] instead.\n");
+							warning("'LDD A,HL' is obsolete, use 'LDD A,[HL]' or 'LD A,[HL-] instead.");
 					}
 				|	T_Z80_LDD T_MODE_A comma T_MODE_HL_IND
 					{ out_AbsByte(0x0A|(3<<4)); }