Title: [209701] trunk/Source/WTF
- Revision
- 209701
- Author
- [email protected]
- Date
- 2016-12-11 23:20:49 -0800 (Sun, 11 Dec 2016)
Log Message
Unreviewed, guarded clang pragma with COMPILER(CLANG) to fix -Werror
* wtf/PrintStream.cpp:
(WTF::PrintStream::printfVariableFormat):
Modified Paths
Diff
Modified: trunk/Source/WTF/ChangeLog (209700 => 209701)
--- trunk/Source/WTF/ChangeLog 2016-12-12 07:13:26 UTC (rev 209700)
+++ trunk/Source/WTF/ChangeLog 2016-12-12 07:20:49 UTC (rev 209701)
@@ -1,3 +1,10 @@
+2016-12-11 Konstantin Tokarev <[email protected]>
+
+ Unreviewed, guarded clang pragma with COMPILER(CLANG) to fix -Werror
+
+ * wtf/PrintStream.cpp:
+ (WTF::PrintStream::printfVariableFormat):
+
2016-12-11 Filip Pizlo <[email protected]>
Change to use #pragma once (requested by Darin Adler).
Modified: trunk/Source/WTF/wtf/PrintStream.cpp (209700 => 209701)
--- trunk/Source/WTF/wtf/PrintStream.cpp 2016-12-12 07:13:26 UTC (rev 209700)
+++ trunk/Source/WTF/wtf/PrintStream.cpp 2016-12-12 07:20:49 UTC (rev 209701)
@@ -46,13 +46,17 @@
void PrintStream::printfVariableFormat(const char* format, ...)
{
+#if COMPILER(CLANG)
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wformat-nonliteral"
+#endif
va_list argList;
va_start(argList, format);
vprintf(format, argList);
va_end(argList);
+#if COMPILER(CLANG)
#pragma clang diagnostic pop
+#endif
}
void PrintStream::flush()
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes