public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r13-5420] Fix comment so that /* does not appear inside a comment.
@ 2023-01-26 21:42 Gaius Mulley
0 siblings, 0 replies; only message in thread
From: Gaius Mulley @ 2023-01-26 21:42 UTC (permalink / raw)
To: gcc-cvs
https://gcc.gnu.org/g:67bcd1c5ed4d966a91b49b8a7da7c1ca3289c2ce
commit r13-5420-g67bcd1c5ed4d966a91b49b8a7da7c1ca3289c2ce
Author: Gaius Mulley <gaiusmod2@gmail.com>
Date: Thu Jan 26 21:41:53 2023 +0000
Fix comment so that /* does not appear inside a comment.
The block comment in m2.flex associated with splitSlashStar
contains /* which causes a warning. This patch obfuscates
the comment /* symbols.
* m2.flex (splitSlashStar): Fix comment so that /* does not
appear inside the comment.
Signed-off-by: Gaius Mulley <gaiusmod2@gmail.com>
Diff:
---
gcc/m2/m2.flex | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/gcc/m2/m2.flex b/gcc/m2/m2.flex
index 7b8f4f17f42..2937290635c 100644
--- a/gcc/m2/m2.flex
+++ b/gcc/m2/m2.flex
@@ -542,8 +542,8 @@ static void assert_location (location_t location ATTRIBUTE_UNUSED)
/*
* splitSlashStar - called if we are not tokenizing source code after it
* has been preprocessed by cpp. It is only called
- * if the current token was /* and therefore it will
- * be split into two m2 tokens: / and *.
+ * if the current token was a / immediately followed by * and
+ * therefore it will be split into two m2 tokens: / and *.
*/
static void splitSlashStar (void)
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2023-01-26 21:42 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-01-26 21:42 [gcc r13-5420] Fix comment so that /* does not appear inside a comment Gaius Mulley
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).