]> git.baikalelectronics.ru Git - arm-tf.git/commit
fix: unify fallthrough annotations
authorBoyan Karatotev <boyan.karatotev@arm.com>
Fri, 18 Nov 2022 14:17:17 +0000 (14:17 +0000)
committerBoyan Karatotev <boyan.karatotev@arm.com>
Thu, 1 Dec 2022 16:17:24 +0000 (16:17 +0000)
commite138400d1c19a561eaf9f23b0cadc07226684561
tree352587af53437c6c85a7e445a882834060c73c42
parentd3d2a5a484936a17a4425ea3634b1c2e64dac877
fix: unify fallthrough annotations

Compiling with -Wimplicit-fallthrough=3 (enabled by -Wextra) produces
many warnings about fallthrough comments either missing or being wrong.
Unify the comments so we comply with -Wextra.

Note that Coverity recommends against using the __attribute__ directive.
Also, zlib does not build with a higher value of -Wimplicit-fallthrough.
Finally, compilers strip comments before expanding macros. As such,
checkpatch's fallthrough annotation (or higher levels of the flag) isn't
really possible.

Signed-off-by: Boyan Karatotev <boyan.karatotev@arm.com>
Change-Id: I060cf4f8dc04c02cbb45cf4ceb69569a8369ccee
drivers/imx/usdhc/imx_usdhc.c
drivers/renesas/common/emmc/emmc_cmd.c
lib/libc/snprintf.c
plat/mediatek/common/mtk_smc_handlers.c
plat/nxp/common/psci/plat_psci.c
services/std_svc/spmd/spmd_main.c