diff options
author | Denys Vlasenko | 2014-02-03 03:27:53 +0100 |
---|---|---|
committer | Denys Vlasenko | 2014-02-03 03:27:53 +0100 |
commit | 69a12fa7906d2dcdb5d8e124643a4e0f7865417a (patch) | |
tree | 000ea46db6a66d71a1546b356515ee8f7216f411 /coreutils/catv.c | |
parent | 640ce3de07807133796bccd0bdfa146bbfc788c7 (diff) | |
download | busybox-69a12fa7906d2dcdb5d8e124643a4e0f7865417a.zip busybox-69a12fa7906d2dcdb5d8e124643a4e0f7865417a.tar.gz |
catv: suppress compiler warning
The warning was:
warning: typedef 'BUG_const_mismatch' locally defined but not used [-Wunused-local-typedefs]
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'coreutils/catv.c')
-rw-r--r-- | coreutils/catv.c | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/coreutils/catv.c b/coreutils/catv.c index e3499c5..6bb73ba 100644 --- a/coreutils/catv.c +++ b/coreutils/catv.c @@ -20,20 +20,22 @@ #include "libbb.h" -int catv_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; -int catv_main(int argc UNUSED_PARAM, char **argv) -{ - int retval = EXIT_SUCCESS; - int fd; - unsigned opts; #define CATV_OPT_e (1<<0) #define CATV_OPT_t (1<<1) #define CATV_OPT_v (1<<2) - typedef char BUG_const_mismatch[ +struct BUG_const_mismatch { + char BUG_const_mismatch[ CATV_OPT_e == VISIBLE_ENDLINE && CATV_OPT_t == VISIBLE_SHOW_TABS ? 1 : -1 ]; +}; +int catv_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; +int catv_main(int argc UNUSED_PARAM, char **argv) +{ + int retval = EXIT_SUCCESS; + int fd; + unsigned opts; opts = getopt32(argv, "etv"); argv += optind; #if 0 /* These consts match, we can just pass "opts" to visible() */ |