Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Used-uninitalized error I hadn't seen before
- X-seq: zsh-workers 43413
- From: Oliver Kiddle <okiddle@xxxxxxxxxxx>
- To: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- Subject: Re: Used-uninitalized error I hadn't seen before
- Date: Sat, 08 Sep 2018 01:22:38 +0200
- Authentication-results: amavisd4.gkg.net (amavisd-new); dkim=pass (2048-bit key) header.d=yahoo.co.uk
- Cc: Zsh hackers list <zsh-workers@xxxxxxx>
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.co.uk; s=s2048; t=1536362573; bh=Tutw8a30u/pwAdqRNf5eKqrkdWrNnNwc6F6Avtcvo6U=; h=From:References:To:Subject:Date:From:Subject; b=g2btK63L0xrG/7/s69udYNWw9ZxWaIhsT1HYC1wxIDXJqm2gSsiqIhhGSIMf6g5R/UtHtkIV7AtqVuK3U6C7023RWrLTVK5geV4geAOR2XvMGwC3aWqbmWAF9cZbDSgoNuNIpPlPEMMywyB7t3irgcDSa2T+hq5cVILtFZqxfBrHDAWQq4vHrQ4wp4mpqLSmDHGz3/j2VhWO3nW38C7h2ilt8Nsad7KIaYkiEJUnfxXJHv080EA6MBRIpzwaVQqOagAODLruaxtkbqCvKMPzP/lkGzka4fUBaBIlNWj/OG45d0y4OAtI/UoJQAa1seHgZsdLPDhbMlG4PdOY2Lhnkw==
- In-reply-to: <CAH+w=7YxE5RxUHufvpTWdFP3imLgkuSSNK7erei3xrhcEeYhOQ@mail.gmail.com>
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- List-unsubscribe: <mailto:zsh-workers-unsubscribe@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- References: <CAH+w=7YxE5RxUHufvpTWdFP3imLgkuSSNK7erei3xrhcEeYhOQ@mail.gmail.com>
Bart wrote:
> Just built zsh 5.6 on a new host.
What compiler is this and what options? I don't get the warning with any
compiler I've got. It'd be useful to track down which uses of the
variable cause the warning.
> computil.c: In function 'ca_inactive':
> computil.c:1832: warning: 'grplen' may be used uninitialized in this function
>
> It's not immediately clear to me to what grplen should be initialized.
I'm fairly sure that it is wrong and grplen can't be used uninitialized.
The trouble with adding an initialisation to silence the warning is that
it wouldn't be a meaningful value. That can make the code harder to follow
later because someone reading the code might puzzle over that initial
value.
Oliver
Messages sorted by:
Reverse Date,
Date,
Thread,
Author