public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [PATCH] gcc/diagnostic.c: make -Werror message more helpful
@ 2021-12-12 10:13 Andrea Monaco
  2021-12-13 18:17 ` Martin Sebor
  0 siblings, 1 reply; 5+ messages in thread
From: Andrea Monaco @ 2021-12-12 10:13 UTC (permalink / raw)
  To: gcc-patches


Hello.


I propose to make that message more verbose.  It sure would have helped
me once.  You don't always have a Web search available :)


Andrea Monaco



diff --git a/gcc/diagnostic.c b/gcc/diagnostic.c
index 4ded1760705..8b67662390e 100644
--- a/gcc/diagnostic.c
+++ b/gcc/diagnostic.c
@@ -156,7 +156,7 @@ default_diagnostic_final_cb (diagnostic_context *context)
       /* -Werror was given.  */
       if (context->warning_as_error_requested)
        pp_verbatim (context->printer,
-                    _("%s: all warnings being treated as errors"),
+                    _("%s: all warnings being treated as errors (-Werror; disable with -Wno-error)"),
                     progname);
       /* At least one -Werror= was given.  */
       else

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2021-12-15  9:34 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-12-12 10:13 [PATCH] gcc/diagnostic.c: make -Werror message more helpful Andrea Monaco
2021-12-13 18:17 ` Martin Sebor
2021-12-14 18:33   ` Eric Gallager
2021-12-14 21:35     ` Eric Gallager
2021-12-15  9:34   ` Richard Sandiford

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).