Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Compiler warning after workers/39825
- X-seq: zsh-workers 39864
- From: Sebastian Gniazdowski <psprint@xxxxxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: Re: Compiler warning after workers/39825
- Date: Mon, 07 Nov 2016 23:08:53 -0800
- Dkim-signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=fastmail.com; h= content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-sender :x-me-sender:x-sasl-enc; s=mesmtp; bh=A9HN8QKsqhMZKvMWFGGE8ubE2L k=; b=wRcKhTonMs569Kmm4DEiqnIdbzCUornkwYviI+OBY35lCxnSWG43TyE6Y3 5Jldb3UREjansUlL9StuqUYwh9AVStKhjvJVlVsM0z6YyaqaZME24z4dGp+C/bv9 FKZml6+kkaGPUPCqvinPxTaFs49Or3ueoQs6wbKa+2xW30YL0=
- Dkim-signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-sender:x-me-sender:x-sasl-enc; s=smtpout; bh=A9 HN8QKsqhMZKvMWFGGE8ubE2Lk=; b=jwwhh2IHHfutp7x2HbK7ZqPVE8eQ9Zfb6w maxTXaf+Q9ObMyqVZsKmd9D5oyX9zjES5Ol9043K3ereeZKxrFSVul+Kro0BGgcB iLBFiujNB7oaJBKjQnS2x+EZFOaxDBhTSaNGEgyg5Kg9SUL8c5D30VMRMSszTx96 Bz2AdGNoA=
- In-reply-to: <161107155001.ZM25685@torch.brasslantern.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>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- References: <161107155001.ZM25685@torch.brasslantern.com>
On Mon, Nov 7, 2016, at 03:50 PM, Bart Schaefer wrote:
> ../../zsh-5.0/Src/utils.c: In function `mb_metastrlenend':
> ../../zsh-5.0/Src/utils.c:5344: warning: comparison is always true due to
> limited range of data type
>
> commit 9c68ef08
Probably an enlightenment is scheduled on this, but first
rejecting-facts reaction is that you might have modified the line maybe?
Why would char be always in 0 .. 0x7f is a mystery. Clang doesn't yield
the warning.
BTW. this can be optimized more: `!num_in_char` instead of `complete`,
and no `num_in_char = 0` assignment.
--
Sebastian Gniazdowski
psprint@xxxxxxxxxxxx
Messages sorted by:
Reverse Date,
Date,
Thread,
Author