From: David Neto Date: Tue, 5 Jan 2016 19:49:08 +0000 (-0500) Subject: Avoid warning for implicit conversion of char array to bool. X-Git-Tag: upstream/2018.6~1390 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=095a41aca8fecd02d1db7dc3d4f3aafee31e175b;p=platform%2Fupstream%2FSPIRV-Tools.git Avoid warning for implicit conversion of char array to bool. Clang complains about assert("unhandled") but not assert(false && "unhandled"). --- diff --git a/source/disassemble.cpp b/source/disassemble.cpp index 07ba2b4..83aaade 100644 --- a/source/disassemble.cpp +++ b/source/disassemble.cpp @@ -260,7 +260,7 @@ void Disassembler::EmitOperand(const spv_parsed_instruction_t& inst, } } else { // TODO(dneto): Support more than 64-bits at a time. - assert("Unhandled"); + assert(false && "Unhandled"); } } break; case SPV_OPERAND_TYPE_LITERAL_STRING: {