From e5897d041d704a40efc8480cb2a72ef6843d0642 Mon Sep 17 00:00:00 2001 From: Denys Vlasenko Date: Fri, 25 Oct 2019 13:05:15 +0200 Subject: suppress a few "unused function" warnings Signed-off-by: Denys Vlasenko --- networking/ntpd.c | 2 ++ networking/tls_aesgcm.c | 2 ++ 2 files changed, 4 insertions(+) (limited to 'networking') diff --git a/networking/ntpd.c b/networking/ntpd.c index 48dc1c3..47410c2 100644 --- a/networking/ntpd.c +++ b/networking/ntpd.c @@ -504,12 +504,14 @@ static ALWAYS_INLINE double MAXD(double a, double b) return a; return b; } +#if !USING_KERNEL_PLL_LOOP static ALWAYS_INLINE double MIND(double a, double b) { if (a < b) return a; return b; } +#endif static NOINLINE double my_SQRT(double X) { union { diff --git a/networking/tls_aesgcm.c b/networking/tls_aesgcm.c index a4663cd..5ddcdd2 100644 --- a/networking/tls_aesgcm.c +++ b/networking/tls_aesgcm.c @@ -13,6 +13,7 @@ typedef uint32_t word32; /* from wolfssl-3.15.3/wolfcrypt/src/aes.c */ +#ifdef UNUSED static ALWAYS_INLINE void FlattenSzInBits(byte* buf, word32 sz) { /* Multiply the sz by 8 */ @@ -32,6 +33,7 @@ static ALWAYS_INLINE void FlattenSzInBits(byte* buf, word32 sz) // buf[7] = sz & 0xff; *(uint32_t*)(buf + 4) = SWAP_BE32(sz); } +#endif static void RIGHTSHIFTX(byte* x) { -- cgit v1.1