aboutsummaryrefslogtreecommitdiffstats
path: root/src/SongLoader.cxx
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/SongLoader.cxx
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/SongLoader.cxx')
-rw-r--r--src/SongLoader.cxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/SongLoader.cxx b/src/SongLoader.cxx
index c766a16a9..43e57e93b 100644
--- a/src/SongLoader.cxx
+++ b/src/SongLoader.cxx
@@ -77,7 +77,10 @@ SongLoader::LoadFile(const char *path_utf8, Error &error) const
DetachedSong *
SongLoader::LoadSong(const char *uri_utf8, Error &error) const
{
+#if !CLANG_CHECK_VERSION(3,6)
+ /* disabled on clang due to -Wtautological-pointer-compare */
assert(uri_utf8 != nullptr);
+#endif
if (memcmp(uri_utf8, "file:///", 8) == 0)
/* absolute path */