Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: [PATCH] C compatiblity fixes for the configure script (incompatible-pointer-types)
- X-seq: zsh-workers 52391
- From: Oliver Kiddle <opk@xxxxxxx>
- To: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- Cc: zsh-workers@xxxxxxx
- Subject: Re: [PATCH] C compatiblity fixes for the configure script (incompatible-pointer-types)
- Date: Sat, 09 Dec 2023 23:13:53 +0100
- Archived-at: <https://zsh.org/workers/52391>
- In-reply-to: <CAH+w=7Z+eprKOYQG8NiHgXcuKvs1b7CPvC35Ja8V20Z5i6gHLA@mail.gmail.com>
- List-id: <zsh-workers.zsh.org>
- References: <87cyvgcsyo.fsf@oldenburg.str.redhat.com> <CAH+w=7Z+eprKOYQG8NiHgXcuKvs1b7CPvC35Ja8V20Z5i6gHLA@mail.gmail.com>
Bart Schaefer wrote:
> On Fri, Dec 8, 2023 at 12:58 PM Florian Weimer <fweimer@xxxxxxxxxx> wrote:
> >
> > Avoid incompatible pointer types in terminfo global variable checks.
>
> For the record, the incompatibility seems to be that ncurses now
> declares these as arrays of const pointer to const char.
>
> Curiously (incorrectly?) the Solaris 11.3 documentation available
> online shows them as only char*, not even char**.
Checking /usr/include/term.h on 11.4 and 10, it is:
extern char term_parm_err[], *term_err_strings[], *Def_term,
*boolnames[], *boolcodes[], *boolfnames[],
*numnames[], *numcodes[], *numfnames[],
*strnames[], *strcodes[], *strfnames[];
The patch has no impact on a Solaris build.
And while I don't have a new enough compiler to verify the described
problem, I don't doubt it. I can't see adding a cast to the type it is
being assigned to causing problems so no objections from me.
Oliver
Messages sorted by:
Reverse Date,
Date,
Thread,
Author