aboutsummaryrefslogtreecommitdiffstats
path: root/src/Directory.cxx
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/Directory.cxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/Directory.cxx b/src/Directory.cxx
index b2942588e..238bd149c 100644
--- a/src/Directory.cxx
+++ b/src/Directory.cxx
@@ -40,7 +40,10 @@ extern "C" {
inline Directory *
Directory::Allocate(const char *path)
{
+#if !CLANG_CHECK_VERSION(3,6)
+ /* disabled on clang due to -Wtautological-pointer-compare */
assert(path != nullptr);
+#endif
const size_t path_size = strlen(path) + 1;
Directory *directory =