From a034ce04786b627ab1c6b6f485b19355ab58f779 Mon Sep 17 00:00:00 2001 From: ISSOtm Date: Thu, 9 Apr 2020 17:55:01 +0200 Subject: [PATCH] Deprecate '*' for comments --- src/asm/lexer.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/asm/lexer.c b/src/asm/lexer.c index 27a9a1cf..e77bcb41 100644 --- a/src/asm/lexer.c +++ b/src/asm/lexer.c @@ -342,6 +342,7 @@ YY_BUFFER_STATE yy_create_buffer(FILE *f) *mem++ = ' '; /* Comments that start with * at the start of a line */ } else if ((mem[0] == '\n') && (mem[1] == '*')) { + warning(WARNING_OBSOLETE, "'*' is deprecated for comments, please use ';' instead"); mem++; while (!((*mem == '\n') || (*mem == '\0'))) *mem++ = ' ';