aboutsummaryrefslogtreecommitdiff
path: root/coreutils
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2014-02-03 03:27:53 +0100
committerDenys Vlasenko <vda.linux@googlemail.com>2014-02-03 03:27:53 +0100
commit69a12fa7906d2dcdb5d8e124643a4e0f7865417a (patch)
tree000ea46db6a66d71a1546b356515ee8f7216f411 /coreutils
parent640ce3de07807133796bccd0bdfa146bbfc788c7 (diff)
downloadbusybox-w32-69a12fa7906d2dcdb5d8e124643a4e0f7865417a.tar.gz
busybox-w32-69a12fa7906d2dcdb5d8e124643a4e0f7865417a.tar.bz2
busybox-w32-69a12fa7906d2dcdb5d8e124643a4e0f7865417a.zip
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')
-rw-r--r--coreutils/catv.c16
1 files changed, 9 insertions, 7 deletions
diff --git a/coreutils/catv.c b/coreutils/catv.c
index e3499c597..6bb73ba63 100644
--- a/coreutils/catv.c
+++ b/coreutils/catv.c
@@ -20,20 +20,22 @@
20 20
21#include "libbb.h" 21#include "libbb.h"
22 22
23int catv_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE;
24int catv_main(int argc UNUSED_PARAM, char **argv)
25{
26 int retval = EXIT_SUCCESS;
27 int fd;
28 unsigned opts;
29#define CATV_OPT_e (1<<0) 23#define CATV_OPT_e (1<<0)
30#define CATV_OPT_t (1<<1) 24#define CATV_OPT_t (1<<1)
31#define CATV_OPT_v (1<<2) 25#define CATV_OPT_v (1<<2)
32 typedef char BUG_const_mismatch[ 26struct BUG_const_mismatch {
27 char BUG_const_mismatch[
33 CATV_OPT_e == VISIBLE_ENDLINE && CATV_OPT_t == VISIBLE_SHOW_TABS 28 CATV_OPT_e == VISIBLE_ENDLINE && CATV_OPT_t == VISIBLE_SHOW_TABS
34 ? 1 : -1 29 ? 1 : -1
35 ]; 30 ];
31};
36 32
33int catv_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE;
34int catv_main(int argc UNUSED_PARAM, char **argv)
35{
36 int retval = EXIT_SUCCESS;
37 int fd;
38 unsigned opts;
37 opts = getopt32(argv, "etv"); 39 opts = getopt32(argv, "etv");
38 argv += optind; 40 argv += optind;
39#if 0 /* These consts match, we can just pass "opts" to visible() */ 41#if 0 /* These consts match, we can just pass "opts" to visible() */