- wrap label GET_COUNT in #if ENABLE_FEATURE_FANCY_applet to avoid warning

about unused label.
This commit is contained in:
Bernhard Reutner-Fischer
2005-12-13 10:48:45 +00:00
parent ec351c32e3
commit 5816ccb190
2 changed files with 11 additions and 7 deletions
+4 -2
View File
@@ -96,7 +96,7 @@ static ssize_t tail_read(int fd, char *buf, size_t count)
static const char tail_opts[] =
"fn:c:"
#ifdef CONFIG_FEATURE_FANCY_TAIL
#if ENABLE_FEATURE_FANCY_TAIL
"qs:v"
#endif
;
@@ -142,7 +142,9 @@ int tail_main(int argc, char **argv)
count_bytes = 1;
/* FALLS THROUGH */
case 'n':
#if ENABLE_FEATURE_FANCY_TAIL
GET_COUNT:
#endif
count = bb_xgetlarg10_sfx(optarg, tail_suffixes);
/* Note: Leading whitespace is an error trapped above. */
if (*optarg == '+') {
@@ -154,7 +156,7 @@ int tail_main(int argc, char **argv)
count = -count;
}
break;
#ifdef CONFIG_FEATURE_FANCY_TAIL
#if ENABLE_FEATURE_FANCY_TAIL
case 'q':
header_threshhold = INT_MAX;
break;