[test] [ctime] Ignore -Wformat-zero-length warnings
authorMichal Gorny <mgorny@gentoo.org>
Sun, 16 Dec 2018 09:18:31 +0000 (09:18 +0000)
committerMichal Gorny <mgorny@gentoo.org>
Sun, 16 Dec 2018 09:18:31 +0000 (09:18 +0000)
commit16b9decb93faed3671d020e2d096bad46db4f4dc
tree2e93561c6df9d69d00ec19e6be8be6c361d52f09
parenta25cd0c2da6bbaf9e0c30efc102f2343b15d618e
[test] [ctime] Ignore -Wformat-zero-length warnings

Explicitly disable the -Wformat-zero-length diagnostic when running
ctime tests, since one of the test cases passes zero-length format
string to strftime().  When strftime() is appropriately decorated
with __attribute__(format, ...), this caused the test to fail because
of this warning (e.g. on NetBSD).

Differential Revision: https://reviews.llvm.org/D55661

llvm-svn: 349294
libcxx/test/std/utilities/time/date.time/ctime.pass.cpp