summaryrefslogtreecommitdiff
path: root/engines/libzbc.c
diff options
context:
space:
mode:
authorAmmar Faizi <ammarfaizi2@gnuweeb.org>2022-05-12 23:43:33 +0700
committerJens Axboe <axboe@kernel.dk>2022-05-12 11:02:55 -0600
commit6f1a24593c227a4f392f454698aca20e95f0006c (patch)
treeed511473f6d80199f380df0205e94fa105698257 /engines/libzbc.c
parent74ee19043ebb12dd6b0aa243f8cdb7ccd63af857 (diff)
downloadfio-master.tar.gz
fio-master.tar.bz2
Makefile: Suppress `-Wimplicit-fallthrough` when compiling `lex.yy`HEADmaster
lex.yy.c is an auto generated C file. When compiling with clang-15, we got the following warning: ``` CC lex.yy.o lex.yy.c:1444:5: warning: unannotated fall-through between switch labels [-Wimplicit-fallthrough] case EOB_ACT_END_OF_FILE: ^ lex.yy.c:1444:5: note: insert '__attribute__((fallthrough));' to silence this warning case EOB_ACT_END_OF_FILE: ^ __attribute__((fallthrough)); lex.yy.c:1444:5: note: insert 'break;' to avoid fall-through case EOB_ACT_END_OF_FILE: ^ break; 1 warning generated. ``` There is nothing we can do to fix lex.yy.c since it's an auto generated file. Fix this by appending `-Wno-implicit-fallthrough` when compiling this file if we have `-Wimplicit-fallthrough` flag enabled. Reviewed-by: Niklas Cassel <niklas.cassel@wdc.com> Signed-off-by: Ammar Faizi <ammarfaizi2@gnuweeb.org> Link: https://lore.kernel.org/r/20220512164333.46516-4-ammarfaizi2@gnuweeb.org Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'engines/libzbc.c')
0 files changed, 0 insertions, 0 deletions