aboutsummaryrefslogtreecommitdiffstats
path: root/src/db/plugins/simple
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2014-12-26 14:28:01 +0100
committerMax Kellermann <max@duempel.org>2014-12-26 14:34:03 +0100
commit95f84afd338a9333b2fcf05dc171ce1dad6fbe7c (patch)
treea97ed33aed26dc814f78ff31fab44cbe4d14848e /src/db/plugins/simple
parent9f7fd1fbfb0e351d42657b1094c34b0f2233ef6c (diff)
downloadmpd-95f84afd338a9333b2fcf05dc171ce1dad6fbe7c.tar.gz
mpd-95f84afd338a9333b2fcf05dc171ce1dad6fbe7c.tar.xz
mpd-95f84afd338a9333b2fcf05dc171ce1dad6fbe7c.zip
fs/Traits, ...: work around -Wtautological-pointer-compare
New in clang 3.6.
Diffstat (limited to 'src/db/plugins/simple')
-rw-r--r--src/db/plugins/simple/SimpleDatabasePlugin.cxx5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/db/plugins/simple/SimpleDatabasePlugin.cxx b/src/db/plugins/simple/SimpleDatabasePlugin.cxx
index 7b1886f1c..a0472462a 100644
--- a/src/db/plugins/simple/SimpleDatabasePlugin.cxx
+++ b/src/db/plugins/simple/SimpleDatabasePlugin.cxx
@@ -435,9 +435,12 @@ SimpleDatabase::Save(Error &error)
bool
SimpleDatabase::Mount(const char *uri, Database *db, Error &error)
{
+#if !CLANG_CHECK_VERSION(3,6)
+ /* disabled on clang due to -Wtautological-pointer-compare */
assert(uri != nullptr);
- assert(*uri != 0);
assert(db != nullptr);
+#endif
+ assert(*uri != 0);
ScopeDatabaseLock protect;