Pushed as pre-approved by Jeff. The patch fixes -Wformat-diag warnings.

Martin

gcc/ChangeLog:

        * config/vms/vms-c.cc (vms_pragma_nostandard): Fix -Wformat-diag
        warning.
        (vms_pragma_standard): Likewise.
        (vms_pragma_extern_prefix): Likewise.
---
 gcc/config/vms/vms-c.cc | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/gcc/config/vms/vms-c.cc b/gcc/config/vms/vms-c.cc
index aae67d259ab..2f74fb574cd 100644
--- a/gcc/config/vms/vms-c.cc
+++ b/gcc/config/vms/vms-c.cc
@@ -41,7 +41,7 @@ vms_pragma_nostandard (cpp_reader *pfile ATTRIBUTE_UNUSED)
   tree x;
if (pragma_lex (&x) != CPP_EOF)
-    warning (OPT_Wpragmas, "junk at end of #pragma __nostandard");
+    warning (OPT_Wpragmas, "junk at end of %<#pragma __nostandard%>");
 }
/* '#pragma __standard' is simply ignored. */
@@ -52,7 +52,7 @@ vms_pragma_standard (cpp_reader *pfile ATTRIBUTE_UNUSED)
   tree x;
if (pragma_lex (&x) != CPP_EOF)
-    warning (OPT_Wpragmas, "junk at end of #pragma __standard");
+    warning (OPT_Wpragmas, "junk at end of %<#pragma __standard%>");
 }
/* Saved member alignment. */
@@ -271,13 +271,13 @@ vms_pragma_extern_prefix (cpp_reader * ARG_UNUSED (dummy))
         pragma_extern_prefix = saved_extern_prefix;
       else
         warning (OPT_Wpragmas,
-                 "malformed '#pragma __extern_prefix', ignoring");
+                 "malformed %<#pragma __extern_prefix%>, ignoring");
       return;
     }
   else if (tok != CPP_STRING)
     {
       warning (OPT_Wpragmas,
-               "malformed '#pragma __extern_prefix', ignoring");
+               "malformed %<#pragma __extern_prefix%>, ignoring");
     }
   else
     {
--
2.34.1


Reply via email to