Fix two warnings found in build testing.
This commit is contained in:
parent
f8df43486a
commit
6bae133e74
@ -65,10 +65,13 @@
|
||||
#ifdef CONFIG_ARCH_FPU
|
||||
static inline void kinetis_fpuconfig(void);
|
||||
#endif
|
||||
|
||||
#if 0 /* Not used */
|
||||
#ifdef CONFIG_STACK_COLORATION
|
||||
static void go_os_start(void *pv, unsigned int nbytes)
|
||||
__attribute__ ((naked, no_instrument_function, noreturn));
|
||||
#endif
|
||||
#endif
|
||||
|
||||
/****************************************************************************
|
||||
* Pre-processor Definitions
|
||||
@ -225,6 +228,7 @@ static inline void kinetis_fpuconfig(void)
|
||||
*
|
||||
****************************************************************************/
|
||||
|
||||
#if 0 /* Not used */
|
||||
#ifdef CONFIG_STACK_COLORATION
|
||||
static void go_os_start(void *pv, unsigned int nbytes)
|
||||
{
|
||||
@ -256,6 +260,7 @@ static void go_os_start(void *pv, unsigned int nbytes)
|
||||
);
|
||||
}
|
||||
#endif
|
||||
#endif
|
||||
|
||||
/****************************************************************************
|
||||
* Public Functions
|
||||
|
@ -107,7 +107,7 @@ static int inet_ipv4_ntop(FAR const void *src, FAR char *dest, socklen_t size)
|
||||
return -ENOSPC;
|
||||
}
|
||||
|
||||
ptr = (FAR char *)src;
|
||||
ptr = (FAR uint8_t *)src;
|
||||
sprintf(dest, "%u.%u.%u.%u", ptr[0], ptr[1], ptr[2], ptr[3]);
|
||||
return OK;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user