From 80fc8cd11ef913f8e51f16dc7526ac1ac4188fe3 Mon Sep 17 00:00:00 2001 From: acqn Date: Tue, 26 Jul 2022 21:10:36 +0800 Subject: [PATCH] Added preprocessor warning on missing terminating characters of character/string literals. --- src/cc65/preproc.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/cc65/preproc.c b/src/cc65/preproc.c index 6de50d0b5..4af37a4b5 100644 --- a/src/cc65/preproc.c +++ b/src/cc65/preproc.c @@ -399,6 +399,8 @@ static void CopyQuotedString (StrBuf* Target) if (CurC != '\0') { SB_AppendChar (Target, CurC); NextChar (); + } else { + PPWarning ("Missing terminating %c character", Quote); } }