[PATCH] D55661: [libcxx] [test] [ctime] Ignore -Wformat-zero-length warnings

Michał Górny via Phabricator reviews at reviews.llvm.org
Sun Dec 16 01:21:57 PST 2018


This revision was automatically updated to reflect the committed changes.
Closed by commit rL349294: [test] [ctime] Ignore -Wformat-zero-length warnings (authored by mgorny, committed by ).
Herald added subscribers: llvm-commits, christof.

Changed prior to commit:
  https://reviews.llvm.org/D55661?vs=178088&id=178388#toc

Repository:
  rL LLVM

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D55661/new/

https://reviews.llvm.org/D55661

Files:
  libcxx/trunk/test/std/utilities/time/date.time/ctime.pass.cpp


Index: libcxx/trunk/test/std/utilities/time/date.time/ctime.pass.cpp
===================================================================
--- libcxx/trunk/test/std/utilities/time/date.time/ctime.pass.cpp
+++ libcxx/trunk/test/std/utilities/time/date.time/ctime.pass.cpp
@@ -26,6 +26,10 @@
 #endif
 #endif
 
+#if defined(__GNUC__)
+#pragma GCC diagnostic ignored "-Wformat-zero-length"
+#endif
+
 int main()
 {
     std::clock_t c = 0;


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D55661.178388.patch
Type: text/x-patch
Size: 434 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libcxx-commits/attachments/20181216/c5f1332e/attachment.bin>


More information about the libcxx-commits mailing list