summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKevin Smith <git@kismith.co.uk>2018-04-28 12:54:35 (GMT)
committerKevin Smith <git@kismith.co.uk>2018-04-28 12:54:35 (GMT)
commit7f0bbb47ef2c8afb0cbe015438d8f2c4459ab7c0 (patch)
treeb015d61e60a27b84d83c50f62f84f32581839985 /Swiften/Client
parentae40d88f47c4f73b81d675b39a311eb6af8b03f3 (diff)
downloadswift-7f0bbb47ef2c8afb0cbe015438d8f2c4459ab7c0.zip
swift-7f0bbb47ef2c8afb0cbe015438d8f2c4459ab7c0.tar.bz2
Disable false-positive clang warning
Test-Information: ./scons check=1 allow_warnings=0 now passes on latest macOS Change-Id: I4411d6b4953e6e2eb7fbb53e460fef296d24b0e6
Diffstat (limited to 'Swiften/Client')
-rw-r--r--Swiften/Client/UnitTest/XMLBeautifierTest.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/Swiften/Client/UnitTest/XMLBeautifierTest.cpp b/Swiften/Client/UnitTest/XMLBeautifierTest.cpp
index 2eac086..2a639ea 100644
--- a/Swiften/Client/UnitTest/XMLBeautifierTest.cpp
+++ b/Swiften/Client/UnitTest/XMLBeautifierTest.cpp
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2010-2017 Isode Limited.
+ * Copyright (c) 2010-2018 Isode Limited.
* All rights reserved.
* See the COPYING file for more information.
*/
@@ -8,6 +8,9 @@
#include <Swiften/Client/XMLBeautifier.h>
#include <iostream>
+// Clang wrongly things that tests for 0 are using 0 as null.
+#pragma clang diagnostic ignored "-Wzero-as-null-pointer-constant"
+
using namespace Swift;
namespace {