[PATCH 2/2] xz/xz_crc64.c: Add prototypes to fix warnings

Gedare Bloom gedare at rtems.org
Wed Apr 5 16:47:24 UTC 2017


On Wed, Apr 5, 2017 at 1:06 PM, Joel Sherrill <joel at rtems.org> wrote:
> ---
>  cpukit/libmisc/xz/xz_crc64.c | 5 +++++
>  1 file changed, 5 insertions(+)
>
> diff --git a/cpukit/libmisc/xz/xz_crc64.c b/cpukit/libmisc/xz/xz_crc64.c
> index ca1caee..d8cef37 100644
> --- a/cpukit/libmisc/xz/xz_crc64.c
> +++ b/cpukit/libmisc/xz/xz_crc64.c
> @@ -12,6 +12,11 @@
>
>  #include "xz_private.h"
>
> +#ifdef __rtems__
> +XZ_EXTERN void xz_crc64_init(void);
> +XZ_EXTERN uint64_t xz_crc64(const uint8_t *buf, size_t size, uint64_t crc);
> +#endif
These are prototyped by xz.h -- perhaps there is a problem with how
the includes are used by RTEMS

> +
>  #ifndef STATIC_RW_DATA
>  #      define STATIC_RW_DATA static
>  #endif
> --
> 1.8.3.1
>
> _______________________________________________
> devel mailing list
> devel at rtems.org
> http://lists.rtems.org/mailman/listinfo/devel



More information about the devel mailing list