aboutsummaryrefslogtreecommitdiffstats
path: root/src/InputStream.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'src/InputStream.cxx')
-rw-r--r--src/InputStream.cxx6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/InputStream.cxx b/src/InputStream.cxx
index 28a0aad1a..73b581d2d 100644
--- a/src/InputStream.cxx
+++ b/src/InputStream.cxx
@@ -155,7 +155,10 @@ InputStream::IsAvailable()
size_t
InputStream::Read(void *ptr, size_t _size, Error &error)
{
+#if !CLANG_CHECK_VERSION(3,6)
+ /* disabled on clang due to -Wtautological-pointer-compare */
assert(ptr != nullptr);
+#endif
assert(_size > 0);
return plugin.read(this, ptr, _size, error);
@@ -164,7 +167,10 @@ InputStream::Read(void *ptr, size_t _size, Error &error)
size_t
InputStream::LockRead(void *ptr, size_t _size, Error &error)
{
+#if !CLANG_CHECK_VERSION(3,6)
+ /* disabled on clang due to -Wtautological-pointer-compare */
assert(ptr != nullptr);
+#endif
assert(_size > 0);
const ScopeLock protect(mutex);