commit | e67b12e63611291ac567bac4abfb9d43ecac0ce8 | [log] [tgz] |
---|---|---|
author | Fabio Baltieri <fabiobaltieri@google.com> | Thu Dec 28 21:51:30 2023 +0000 |
committer | Chris Friedt <chrisfriedt@gmail.com> | Sat Dec 30 14:35:41 2023 -0500 |
tree | 7c494ab5eba7bb66d2e002778dd1dc525450b37e | |
parent | aa4416624dceef29ec9ca78820c9fe5d3868f62c [diff] |
lib: posix: tag the fallthrough case as __fallthrough Use the __fallthrough directive on the switch fallthrough case and drop the comment instead. This informs the compiler that the fallthrough is intentional and silence any possible warning about it. Drop the not reached case as I think that that part can actually be reached since there are breaks in some of the cases. Signed-off-by: Fabio Baltieri <fabiobaltieri@google.com>