[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [PATCH 3/3] tools/libxl: disable clang indentation check for the disk parser
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.pau@xxxxxxxxxx> Acked-by: Wei Liu <wl@xxxxxxx>
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |