On Tue, May 05, 2020 at 11:24:54AM +0200, Roger Pau Monne wrote: > Clang 10 complains with: > > 13: error: misleading indentation; statement is not part of the previous 'if' > [-Werror,-Wmisleading-indentation] > if ( ! yyg->yy_state_buf ) > ^ > libxlu_disk_l.c:1259:9: note: previous statement is here > if ( ! yyg->yy_state_buf ) > ^ > > Due to the missing braces in single line statements and the wrong > indentation. Fix this by disabling the warning for that specific file. > I haven't found a way to force flex to add braces around single line > statements in conditional blocks. > > Signed-off-by: Roger Pau Monné <roger....@citrix.com>
Acked-by: Wei Liu <w...@xen.org>