[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: __alloca patch?

From: Paul Smith
Subject: Re: __alloca patch?
Date: Mon, 06 May 2019 21:36:23 -0400
User-agent: Evolution 3.30.1-1build1

On Sat, 2019-05-04 at 17:00 -0400, Jeffrey Walton wrote:
> glob.c:818:27: warning: incompatible pointer types passing 'char **' to
>       parameter of type 'char *'; dereference with *
>       [-Wincompatible-pointer-types]
>             = (char **) realloc (pglob->gl_pathv,
>                                  ^~~~~~~~~~~~~~~
>                                  *

That's odd; realloc() is supposed to take a void* not a char* as the
first parameter.  Is MacOS really so non-standard?

reply via email to

[Prev in Thread] Current Thread [Next in Thread]