summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDenys Vlasenko2019-06-08 12:39:30 +0200
committerDenys Vlasenko2019-06-08 12:39:30 +0200
commit7a4e55422a3143eee48660a1f620646a88988147 (patch)
treea5ec67e8d31d9e2b9fed5d1f3e6bac501461c776
parent3e463e1cfd8d6c42b4ee866723f84ca8adb32da7 (diff)
downloadbusybox-7a4e55422a3143eee48660a1f620646a88988147.zip
busybox-7a4e55422a3143eee48660a1f620646a88988147.tar.gz
bc: placate compiler warnings
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
-rw-r--r--miscutils/bc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/miscutils/bc.c b/miscutils/bc.c
index 36e978e..aba51e5 100644
--- a/miscutils/bc.c
+++ b/miscutils/bc.c
@@ -997,10 +997,12 @@ static ERRORFUNC int bc_error_bad_character(char c)
IF_ERROR_RETURN_POSSIBLE(return) bc_error("NUL character");
IF_ERROR_RETURN_POSSIBLE(return) bc_error_fmt("bad character '%c'", c);
}
+#if ENABLE_BC
static ERRORFUNC int bc_error_bad_function_definition(void)
{
IF_ERROR_RETURN_POSSIBLE(return) bc_error_at("bad function definition");
}
+#endif
static ERRORFUNC int bc_error_bad_expression(void)
{
IF_ERROR_RETURN_POSSIBLE(return) bc_error_at("bad expression");
@@ -1273,14 +1275,12 @@ static int bc_map_insert(BcVec *v, const void *ptr, size_t *i)
return 1; // "was inserted"
}
-#if ENABLE_BC
static size_t bc_map_find_exact(const BcVec *v, const void *ptr)
{
size_t i = bc_map_find_ge(v, ptr);
if (i >= v->len) return BC_VEC_INVALID_IDX;
return bc_id_cmp(ptr, bc_vec_item(v, i)) ? BC_VEC_INVALID_IDX : i;
}
-#endif
static void bc_num_setToZero(BcNum *n, size_t scale)
{