btrfs-progs/common
Marcos Paulo de Souza 575b6e0e51 btrfs-progs: utils: Replace __attribute__(fallthrough)
When compiling with clang, this warning is shown:

common/utils.c:404:3: warning: declaration does not declare anything [-Wmissing-declarations]
                __attribute__ ((fallthrough));

This attribute seems to silence the same warning in GCC. Changing this
attribute with /* fallthrough */ fixes the warning for both gcc and
clang.

Full support for the attribute will be in clang 10, gcc supports that
now. Let's use what works for both and switch to the attribute in the
future.

Reviewed-by: Nikolay Borisov <nborisov@suse.com>
Signed-off-by: Marcos Paulo de Souza <mpdesouza@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
2019-11-18 19:21:08 +01:00
..
box.h btrfs-progs: build most common tools into one binary (busybox style) 2019-07-04 15:30:40 +02:00
device-scan.c btrfs-progs: pretty print device size in overflow error message 2019-09-04 16:08:31 +02:00
device-scan.h btrfs-progs: utils: split device scanning functions to own file 2019-07-04 02:06:34 +02:00
device-utils.c btrfs-progs: utils: split device handling functions to own file 2019-07-04 02:06:34 +02:00
device-utils.h btrfs-progs: utils: split device handling functions to own file 2019-07-04 02:06:34 +02:00
format-output.c btrfs-progs: fix a printf format string fatal warning 2019-07-26 17:46:41 +02:00
format-output.h btrfs-progs: output formatter infrastructure 2019-07-03 20:49:04 +02:00
fsfeatures.c btrfs-progs: move utils.[ch] to common/ 2019-07-03 20:49:04 +02:00
fsfeatures.h btrfs-progs: move fsfeatures.[ch] to common/ 2019-07-03 20:49:03 +02:00
help.c btrfs-progs: build most common tools into one binary (busybox style) 2019-07-04 15:30:40 +02:00
help.h btrfs-progs: define new output format: json 2019-07-03 20:49:04 +02:00
internal.h btrfs-progs: move internal.h to common/ 2019-07-03 20:49:03 +02:00
messages.c btrfs-progs: move messages.[ch] to common/ 2019-07-03 20:49:03 +02:00
messages.h btrfs-progs: move messages.[ch] to common/ 2019-07-03 20:49:03 +02:00
path-utils.c btrfs-progs: path-utils: rename test_isdir 2019-07-04 02:06:33 +02:00
path-utils.h btrfs-progs: path-utils: rename test_isdir 2019-07-04 02:06:33 +02:00
rbtree-utils.c btrfs-progs: move rbtree-utils.[ch] to common/ 2019-07-03 20:49:04 +02:00
rbtree-utils.h btrfs-progs: move rbtree-utils.[ch] to common/ 2019-07-03 20:49:04 +02:00
string-table.c btrfs-progs: move string-table.[ch] to common/ 2019-07-03 20:49:03 +02:00
string-table.h btrfs-progs: move string-table.[ch] to common/ 2019-07-03 20:49:03 +02:00
task-utils.c btrfs-progs: move task-utils.[ch] to common/ 2019-07-03 20:49:03 +02:00
task-utils.h btrfs-progs: move task-utils.[ch] to common/ 2019-07-03 20:49:03 +02:00
utils.c btrfs-progs: utils: Replace __attribute__(fallthrough) 2019-11-18 19:21:08 +01:00
utils.h btrfs-progs: constify argument of parse_size 2019-10-14 17:27:50 +02:00