public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc(refs/users/marxin/heads/Wformat-diag-targets-part-2)] vms: fix -Wformat-diag warnings.
@ 2022-01-18 13:56 Martin Liska
0 siblings, 0 replies; only message in thread
From: Martin Liska @ 2022-01-18 13:56 UTC (permalink / raw)
To: gcc-cvs
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
{
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2022-01-18 13:56 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-01-18 13:56 [gcc(refs/users/marxin/heads/Wformat-diag-targets-part-2)] vms: fix -Wformat-diag warnings Martin Liska
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).