This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[committed] correct %D quoting in gcc/config/sol2-c.c


In preparation for committing the meat of the patch for bug 80280
I've committed the following in r247758 as an obvious fix to prevent
the new -Wformat warning from breaking Solaris bootstrap.  Bootstrap
is currently broken due to 80673 (that looks like a separate issue
from the warning).

Martin

Index: gcc/config/sol2-c.c
===================================================================
--- gcc/config/sol2-c.c	(revision 247757)
+++ gcc/config/sol2-c.c	(working copy)
@@ -113,7 +113,7 @@ solaris_pragma_align (cpp_reader *pfile ATTRIBUTE_
       tree decl = identifier_global_value (t);
       if (decl && DECL_P (decl))
 	warning (0, "%<#pragma align%> must appear before the declaration of "
-		 "%D, ignoring", decl);
+		 "%qD, ignoring", decl);
       else
 	solaris_pending_aligns = tree_cons (t, build_tree_list (NULL, x),
 					    solaris_pending_aligns);


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]