From: Andrej Borsenkow <borsenkow.msk@sni.de>
To: Thorsten Meinecke <kaefer@aglaia.aball.DE>
Cc: zsh-workers@math.gatech.edu
Subject: Re: 3.1.0-test3: gcc -ansi -pedantic
Date: Wed, 20 Nov 1996 09:06:21 +0300 (MOW) [thread overview]
Message-ID: <Pine.SV4.3.95.961120090334.9611A-100000@itsrm1.mow.sni.de> (raw)
In-Reply-To: <m0vPx3J-00008PC@aglaia.aball.DE>
On Tue, 19 Nov 1996, Thorsten Meinecke wrote:
> Hello, did anyone bother before to build zsh with gcc -ansi -pedantic?
>
> It looks like some of the module-related changes aren't ANSI/ISO C,
> and from some of the older stuff it elicits warnings about variable
> sized arrays and conversions w/o cast as well. Furthermore, there's
> trouble in module.c, because gcc says ANSI forbids assignment between
> function pointer and `void *'. Most serious:
>
> ../Src> gcc -c -I.. -I. -I. -DHAVE_CONFIG_H -Wall -Wno-implicit \
> -Wmissing-prototypes -g -ansi -pedantic zle_main.c
> zle_main.c: In function `zleread':
> zle_main.c:439: warning: ANSI C forbids use of conditional expressions as lvalues
> zle_main.c: In function `unbindzlefunc':
> zle_main.c:1257: initializer element for `keybindlist[0]' is not computable at load time
> zle_main.c:1257: initializer element for `keybindlist[1]' is not computable at load time
> make: *** [zle_main.o] Error 1
>
I don't use gcc, but my compiler did give the same errors. I just had no
time to send a patch :-(
> I can offer fixes for the error (and the warnings) in the zle_*
> module-related code, by introducing yet another level of indirection
> to both underlying problems.
>
Yes, I was ready to propose the same ;)
thanks
greetings
-------------------------------------------------------------------------
Andrej Borsenkow Fax: +7 (095) 252 01 05
SNI ITS Moscow Tel: +7 (095) 252 13 88
NERV: borsenkow.msk E-Mail: borsenkow.msk@sni.de
-------------------------------------------------------------------------
next prev parent reply other threads:[~1996-11-20 6:21 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
1996-11-19 20:45 Thorsten Meinecke
1996-11-20 6:06 ` Andrej Borsenkow [this message]
1996-11-20 8:57 ` Peter Stephenson
1996-11-20 15:45 ` Zoltan Hidvegi
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=Pine.SV4.3.95.961120090334.9611A-100000@itsrm1.mow.sni.de \
--to=borsenkow.msk@sni.de \
--cc=kaefer@aglaia.aball.DE \
--cc=zsh-workers@math.gatech.edu \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).