diff options
| author | Gustavo A. R. Silva <[email protected]> | 2019-02-11 16:23:18 -0600 |
|---|---|---|
| committer | Jonathan Cameron <[email protected]> | 2019-04-04 20:19:41 +0100 |
| commit | cb57f2eb0156829f61dd946d96b1270ea7535b76 (patch) | |
| tree | 4b419009d4352c590a1142650aa218aa32fe0a18 /tools/perf/scripts/python | |
| parent | faad0af1623c5dd214aa3207ba43186ee37c685d (diff) | |
iio: mma8452: mark expected switch fall-through
In preparation to enabling -Wimplicit-fallthrough, mark switch
cases where we are expecting to fall through.
This patch fixes the following warning:
drivers/iio/accel/mma8452.c: In function ‘mma8452_probe’:
drivers/iio/accel/mma8452.c:1581:6: warning: this statement may fall through [-Wimplicit-fallthrough=]
if (ret == data->chip_info->chip_id)
^
drivers/iio/accel/mma8452.c:1584:2: note: here
default:
^~~~~~~
Warning level 3 was used: -Wimplicit-fallthrough=3
Notice that, in this particular case, the code comment is modified
in accordance with what GCC is expecting to find.
This patch is part of the ongoing efforts to enable
-Wimplicit-fallthrough.
Signed-off-by: Gustavo A. R. Silva <[email protected]>
Signed-off-by: Jonathan Cameron <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions