]> git.ipfire.org Git - people/ms/gcc.git/commitdiff
PR modula2/109102 Wrong quotes in diagnostic
authorGaius Mulley <gaiusmod2@gmail.com>
Fri, 17 Mar 2023 12:47:06 +0000 (12:47 +0000)
committerGaius Mulley <gaiusmod2@gmail.com>
Fri, 17 Mar 2023 12:47:06 +0000 (12:47 +0000)
The backtick and single quote should be replaced with %< and %> or
%qs.

gcc/m2/ChangeLog:

PR modula2/109102
* gm2-gcc/m2builtins.cc (ASSERT): Change format specifier to
use %qs rather than quotes.

Signed-off-by: Gaius Mulley <gaiusmod2@gmail.com>
gcc/m2/gm2-gcc/m2builtins.cc

index b9ac7fc5da4b340e318ff049c1a454676e4c0efc..8d104c41a1ee319ffe44468cf7170013f31f11ab 100644 (file)
@@ -40,7 +40,7 @@ along with GNU Modula-2; see the file COPYING3.  If not see
     if (!(X))                                                                 \
       {                                                                       \
         debug_tree (Y);                                                       \
-        internal_error ("%s:%d:assertion of condition `%s' failed", __FILE__, __LINE__,  \
+        internal_error ("%s:%d:assertion of condition %qs failed", __FILE__, __LINE__,  \
                         #X);                                                  \
       }                                                                       \
   }