Re: [PATCH 5/6] perf tools: Remove BUG_ON char[] to bool implicit conversions

2017-08-28 Thread Jiri Olsa
On Sun, Aug 27, 2017 at 12:54:41AM -0700, David Carrillo-Cisneros wrote: > When compiling with LLVM, errors like this are shown: > > builtin-lock.c:46:10: error: implicit conversion turns string literal into > bool: 'const char [39]' to 'bool' > > Due to error message implicit conversion into

[PATCH 5/6] perf tools: Remove BUG_ON char[] to bool implicit conversions

2017-08-27 Thread David Carrillo-Cisneros
When compiling with LLVM, errors like this are shown: builtin-lock.c:46:10: error: implicit conversion turns string literal into bool: 'const char [39]' to 'bool' Due to error message implicit conversion into bool. Fix it by defining a BUG macro without a boolean argument and use it instead.