aboutsummaryrefslogtreecommitdiffstats
path: root/src/DecoderPlugin.cxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2014-12-26 13:40:17 +0100
committerMax Kellermann <max@duempel.org>2014-12-26 13:43:32 +0100
commit53f40448901ffe0d953c81939d031c63cdf3779a (patch)
tree9007d66ae6b1a9b58efbff6fa8db80df0a206b13 /src/DecoderPlugin.cxx
parenta5049136ffe020cd17109985e697fe2e8e1a18d5 (diff)
downloadmpd-53f40448901ffe0d953c81939d031c63cdf3779a.tar.gz
mpd-53f40448901ffe0d953c81939d031c63cdf3779a.tar.xz
mpd-53f40448901ffe0d953c81939d031c63cdf3779a.zip
util/{ASCII,UriUtil}, ...: work around -Wtautological-pointer-compare
New in clang 3.6.
Diffstat (limited to 'src/DecoderPlugin.cxx')
-rw-r--r--src/DecoderPlugin.cxx6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/DecoderPlugin.cxx b/src/DecoderPlugin.cxx
index 77ed90882..5170555f5 100644
--- a/src/DecoderPlugin.cxx
+++ b/src/DecoderPlugin.cxx
@@ -26,7 +26,10 @@
bool
DecoderPlugin::SupportsSuffix(const char *suffix) const
{
+#if !CLANG_CHECK_VERSION(3,6)
+ /* disabled on clang due to -Wtautological-pointer-compare */
assert(suffix != nullptr);
+#endif
return suffixes != nullptr && string_array_contains(suffixes, suffix);
@@ -35,7 +38,10 @@ DecoderPlugin::SupportsSuffix(const char *suffix) const
bool
DecoderPlugin::SupportsMimeType(const char *mime_type) const
{
+#if !CLANG_CHECK_VERSION(3,6)
+ /* disabled on clang due to -Wtautological-pointer-compare */
assert(mime_type != nullptr);
+#endif
return mime_types != nullptr &&
string_array_contains(mime_types, mime_type);