[PATCH v2 4/4] osinit: Silence -Wunused-variable warnings

Jeremy Huddleston Sequoia jeremyhu at freedesktop.org
Sun Oct 18 23:14:45 PDT 2015


Actually, only this last one is "v2".

The others I just still need a Reviewed-by: for, but they're unchanged from earlier.  Sorry for any confusion.

> On Oct 18, 2015, at 23:12, Jeremy Huddleston Sequoia <jeremyhu at apple.com> wrote:
> 
> osinit.c:161:24: warning: unused variable 'devnull' [-Wunused-variable,Unused Entity Issue]
>    static const char *devnull = "/dev/null";
>                       ^
> osinit.c:162:10: warning: unused variable 'fname' [-Wunused-variable,Unused Entity Issue]
>    char fname[PATH_MAX];
>         ^
> 
> Signed-off-by: Jeremy Huddleston Sequoia <jeremyhu at apple.com>
> ---
> os/osinit.c | 2 ++
> 1 file changed, 2 insertions(+)
> 
> diff --git a/os/osinit.c b/os/osinit.c
> index ddd3fce..6ec2f11 100644
> --- a/os/osinit.c
> +++ b/os/osinit.c
> @@ -158,8 +158,10 @@ void
> OsInit(void)
> {
>     static Bool been_here = FALSE;
> +#ifndef XQUARTZ
>     static const char *devnull = "/dev/null";
>     char fname[PATH_MAX];
> +#endif
> 
>     if (!been_here) {
> #if !defined(WIN32) || defined(__CYGWIN__)
> -- 
> 2.6.1
> 

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 4127 bytes
Desc: not available
URL: <http://lists.x.org/archives/xorg-devel/attachments/20151018/c7db58b5/attachment.bin>


More information about the xorg-devel mailing list