From d1dee3c9092b7c270b297366757c9fc8d03bb0dd Mon Sep 17 00:00:00 2001 From: Mattes D Date: Tue, 2 Aug 2016 13:12:34 +0200 Subject: Fixed RasPi builds of unit tests. On RasPi with gcc 4.8.2, the asserts wouldn't compile when tests were enabled. Enforced the assumption that ASSERT code is generated only in Debug builds. --- src/HTTP/NameValueParser.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/HTTP') diff --git a/src/HTTP/NameValueParser.cpp b/src/HTTP/NameValueParser.cpp index f759c4d21..94df82438 100644 --- a/src/HTTP/NameValueParser.cpp +++ b/src/HTTP/NameValueParser.cpp @@ -405,7 +405,9 @@ bool cNameValueParser::Finish(void) } } ASSERT(!"Unhandled parser state!"); - return false; + #ifndef __clang__ + return false; + #endif } -- cgit v1.2.3