diff --git a/source/core_json.c b/source/core_json.c index d7513317..a60c864f 100644 --- a/source/core_json.c +++ b/source/core_json.c @@ -1036,7 +1036,15 @@ static void skipScalars( const char * buf, size_t max, char mode ) { - assert( isOpenBracket_( mode ) ); + bool modeIsOpenBracket = ( bool ) isOpenBracket_( mode ); + + /* assert function may be implemented in macro using a # or ## operator. + * Using a local variable here to prevent macro replacement is subjected + * to macro itself. */ + assert( modeIsOpenBracket != false ); + + /* Adding this line to avoid unused variable warning in release mode. */ + ( void ) modeIsOpenBracket; skipSpace( buf, start, max );