Re: [PATCH] selftests: proc: Fix _GNU_SOURCE redefined build warns
From: Alexey Dobriyan
Date: Tue Sep 24 2019 - 15:53:01 EST
On Tue, Sep 24, 2019 at 12:19:10PM -0600, Shuah Khan wrote:
> Fix the following _GNU_SOURCE redefined build warns:
>
> proc-loadavg-001.c:17: warning: "_GNU_SOURCE" redefined
> proc-self-syscall.c:16: warning: "_GNU_SOURCE" redefined
> proc-uptime-002.c:18: warning: "_GNU_SOURCE" redefined
> +#ifndef _GNU_SOURCE
> #define _GNU_SOURCE
> +#endif
Why are you doing this.
There are 140 redefinitions of _GNU_SOURCE