From 7e68a246251d04027319c0f5305bcab4b292018f Mon Sep 17 00:00:00 2001 From: acqn Date: Mon, 3 Aug 2020 01:15:57 +0800 Subject: [PATCH] Clearer warning messages on unused symbols. --- src/cc65/symtab.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/cc65/symtab.c b/src/cc65/symtab.c index ee95a77b7..a673bc3dd 100644 --- a/src/cc65/symtab.c +++ b/src/cc65/symtab.c @@ -172,7 +172,7 @@ static void CheckSymTable (SymTable* Tab) } } else { if (IS_Get (&WarnUnusedVar)) { - Warning ("'%s' is defined but never used", Entry->Name); + Warning ("Variable '%s' is defined but never used", Entry->Name); } } } @@ -186,7 +186,7 @@ static void CheckSymTable (SymTable* Tab) } else if (!SymIsRef (Entry)) { /* Defined but not used */ if (IS_Get (&WarnUnusedLabel)) { - Warning ("'%s' is defined but never used", Entry->Name); + Warning ("Label '%s' is defined but never used", Entry->Name); } } }