Re: [PATCH 5/5] lscpu: avoid compiler warnings

Karel Zak
2014-05-21T08:10:41Z

On Tue, May 20, 2014 at 03:42:31PM +0000, Ruediger Meier wrote:
> From: Ruediger Meier <ruediger.meier@ga-group.nl>
>
> Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
> ---
> sys-utils/lscpu.c | 3 +++
> 1 file changed, 3 insertions(+)
>
> diff --git a/sys-utils/lscpu.c b/sys-utils/lscpu.c
> index ee3ad19..58f6609 100644
> --- a/sys-utils/lscpu.c
> +++ b/sys-utils/lscpu.c
> @@ -598,6 +598,9 @@ static jmp_buf segv_handler_env;
> static void
> segv_handler(int sig, siginfo_t *info, void *ignored)
> {
> + (void)sig;
> + (void)info;
> + (void)ignored;

please, use

segv_handler(__attribute__((__unused__)) sig,
__attribute__((__unused__)) info,
__attribute__((__unused__)) ignored)

Karel

--
Karel Zak <kzak@redhat.com>