public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
From: Martin Liska <marxin@gcc.gnu.org>
To: gcc-cvs@gcc.gnu.org
Subject: [gcc(refs/users/marxin/heads/Wformat-diag-targets-part-2)] vms: fix -Wformat-diag warnings.
Date: Tue, 18 Jan 2022 13:56:55 +0000 (GMT)	[thread overview]
Message-ID: <20220118135655.686CD385781F@sourceware.org> (raw)

https://gcc.gnu.org/g:117a932a529664d49202129ab4a68763a50a72be

commit 117a932a529664d49202129ab4a68763a50a72be
Author: Martin Liska <mliska@suse.cz>
Date:   Tue Jan 18 14:55:43 2022 +0100

    vms: fix -Wformat-diag warnings.
    
    gcc/ChangeLog:
    
            * config/vms/vms-c.cc (vms_pragma_nostandard): Fix -Wformat-diag
            warning.
            (vms_pragma_standard): Likewise.
            (vms_pragma_extern_prefix): Likewise.

Diff:
---
 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
     {


                 reply	other threads:[~2022-01-18 13:56 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20220118135655.686CD385781F@sourceware.org \
    --to=marxin@gcc.gnu.org \
    --cc=gcc-cvs@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).