Title: [209755] trunk/Source/WTF
Revision
209755
Author
[email protected]
Date
2016-12-13 04:49:20 -0800 (Tue, 13 Dec 2016)

Log Message

Unreviewed, silence -Wsuggest-attribute for GCC with pragmas

* wtf/PrintStream.cpp:
(WTF::PrintStream::printfVariableFormat):

Modified Paths

Diff

Modified: trunk/Source/WTF/ChangeLog (209754 => 209755)


--- trunk/Source/WTF/ChangeLog	2016-12-13 12:25:17 UTC (rev 209754)
+++ trunk/Source/WTF/ChangeLog	2016-12-13 12:49:20 UTC (rev 209755)
@@ -1,3 +1,10 @@
+2016-12-13  Konstantin Tokarev  <[email protected]>
+
+        Unreviewed, silence -Wsuggest-attribute for GCC with pragmas
+
+        * wtf/PrintStream.cpp:
+        (WTF::PrintStream::printfVariableFormat):
+
 2016-12-12  Michael Saboff  <[email protected]>
 
         REGRESSION(r209653): speedometer crashes making virtual slow path tailcalls

Modified: trunk/Source/WTF/wtf/PrintStream.cpp (209754 => 209755)


--- trunk/Source/WTF/wtf/PrintStream.cpp	2016-12-13 12:25:17 UTC (rev 209754)
+++ trunk/Source/WTF/wtf/PrintStream.cpp	2016-12-13 12:49:20 UTC (rev 209755)
@@ -49,6 +49,9 @@
 #if COMPILER(CLANG)
 #pragma clang diagnostic push
 #pragma clang diagnostic ignored "-Wformat-nonliteral"
+#elif COMPILER(GCC)
+#pragma GCC diagnostic push
+#pragma GCC diagnostic ignored "-Wsuggest-attribute=format"
 #endif
     va_list argList;
     va_start(argList, format);
@@ -56,6 +59,8 @@
     va_end(argList);
 #if COMPILER(CLANG)
 #pragma clang diagnostic pop
+#elif COMPILER(GCC)
+#pragma GCC diagnostic pop
 #endif
 }
 
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to