aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2019-10-25 13:05:15 +0200
committerDenys Vlasenko <vda.linux@googlemail.com>2019-10-25 13:05:15 +0200
commite5897d041d704a40efc8480cb2a72ef6843d0642 (patch)
treeab580bd571a7483dfa00984420a68c8c47ecf7f6
parent1f1492bb96e318a36dee940e6d4bec0ef915339f (diff)
downloadbusybox-w32-e5897d041d704a40efc8480cb2a72ef6843d0642.tar.gz
busybox-w32-e5897d041d704a40efc8480cb2a72ef6843d0642.tar.bz2
busybox-w32-e5897d041d704a40efc8480cb2a72ef6843d0642.zip
suppress a few "unused function" warnings
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
-rw-r--r--networking/ntpd.c2
-rw-r--r--networking/tls_aesgcm.c2
-rw-r--r--procps/nmeter.c5
-rw-r--r--util-linux/fdisk.c2
4 files changed, 6 insertions, 5 deletions
diff --git a/networking/ntpd.c b/networking/ntpd.c
index 48dc1c379..47410c21e 100644
--- a/networking/ntpd.c
+++ b/networking/ntpd.c
@@ -504,12 +504,14 @@ static ALWAYS_INLINE double MAXD(double a, double b)
504 return a; 504 return a;
505 return b; 505 return b;
506} 506}
507#if !USING_KERNEL_PLL_LOOP
507static ALWAYS_INLINE double MIND(double a, double b) 508static ALWAYS_INLINE double MIND(double a, double b)
508{ 509{
509 if (a < b) 510 if (a < b)
510 return a; 511 return a;
511 return b; 512 return b;
512} 513}
514#endif
513static NOINLINE double my_SQRT(double X) 515static NOINLINE double my_SQRT(double X)
514{ 516{
515 union { 517 union {
diff --git a/networking/tls_aesgcm.c b/networking/tls_aesgcm.c
index a4663cd79..5ddcdd2ad 100644
--- a/networking/tls_aesgcm.c
+++ b/networking/tls_aesgcm.c
@@ -13,6 +13,7 @@ typedef uint32_t word32;
13 13
14/* from wolfssl-3.15.3/wolfcrypt/src/aes.c */ 14/* from wolfssl-3.15.3/wolfcrypt/src/aes.c */
15 15
16#ifdef UNUSED
16static ALWAYS_INLINE void FlattenSzInBits(byte* buf, word32 sz) 17static ALWAYS_INLINE void FlattenSzInBits(byte* buf, word32 sz)
17{ 18{
18 /* Multiply the sz by 8 */ 19 /* Multiply the sz by 8 */
@@ -32,6 +33,7 @@ static ALWAYS_INLINE void FlattenSzInBits(byte* buf, word32 sz)
32// buf[7] = sz & 0xff; 33// buf[7] = sz & 0xff;
33 *(uint32_t*)(buf + 4) = SWAP_BE32(sz); 34 *(uint32_t*)(buf + 4) = SWAP_BE32(sz);
34} 35}
36#endif
35 37
36static void RIGHTSHIFTX(byte* x) 38static void RIGHTSHIFTX(byte* x)
37{ 39{
diff --git a/procps/nmeter.c b/procps/nmeter.c
index f0eb36740..ae16d8548 100644
--- a/procps/nmeter.c
+++ b/procps/nmeter.c
@@ -122,11 +122,6 @@ static inline void reset_outbuf(void)
122 cur_outbuf = outbuf; 122 cur_outbuf = outbuf;
123} 123}
124 124
125static inline int outbuf_count(void)
126{
127 return cur_outbuf - outbuf;
128}
129
130static void print_outbuf(void) 125static void print_outbuf(void)
131{ 126{
132 int sz = cur_outbuf - outbuf; 127 int sz = cur_outbuf - outbuf;
diff --git a/util-linux/fdisk.c b/util-linux/fdisk.c
index 076c5ca57..e58cb0fd1 100644
--- a/util-linux/fdisk.c
+++ b/util-linux/fdisk.c
@@ -588,11 +588,13 @@ partname(const char *dev, int pno, int lth)
588 return bufp; 588 return bufp;
589} 589}
590 590
591#if ENABLE_FEATURE_SGI_LABEL || ENABLE_FEATURE_OSF_LABEL
591static ALWAYS_INLINE struct partition * 592static ALWAYS_INLINE struct partition *
592get_part_table(int i) 593get_part_table(int i)
593{ 594{
594 return ptes[i].part_table; 595 return ptes[i].part_table;
595} 596}
597#endif
596 598
597static ALWAYS_INLINE const char * 599static ALWAYS_INLINE const char *
598str_units(void) 600str_units(void)