# HG changeset patch # User Rik # Date 1644535784 28800 # Node ID fee897477e3b3361588eb1d63194d23ce1c168c6 # Parent bfff3d52369049413d967eff95520738e03a7526 build: Correctly build codebase when -DNDEBUG present (bug #62013) * lex.ll (make_integer_value): Remove call to sscanf from inside assert statement and place on its own line. Call assert() on new variable "status" which holds result of calling sscanf. diff -r bfff3d523690 -r fee897477e3b libinterp/parse-tree/lex.ll --- a/libinterp/parse-tree/lex.ll Wed Feb 09 19:38:49 2022 +0100 +++ b/libinterp/parse-tree/lex.ll Thu Feb 10 15:29:44 2022 -0800 @@ -3298,7 +3298,8 @@ // are in deep doo doo. uintmax_t long_int_val; - assert (sscanf (yytxt.c_str (), "%jx", &long_int_val)); + int status = sscanf (yytxt.c_str (), "%jx", &long_int_val); + assert (status); octave_value ov_value = make_integer_value (long_int_val, unsigned_val, bytes);