Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: -Wrestrict warning on cc 8.3.0
- X-seq: zsh-workers 44220
- From: Roman Perepelitsa <roman.perepelitsa@xxxxxxxxx>
- To: Peter Stephenson <p.stephenson@xxxxxxxxxxx>
- Subject: Re: -Wrestrict warning on cc 8.3.0
- Date: Wed, 10 Apr 2019 10:58:59 +0200
- Cc: zsh-workers@xxxxxxx
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=m//KS357AGRXcO9qdvovWa0dYt5Yhal9PAVisY+5tB4=; b=RHWUisaXj70D0yZhD3APN/UsvcDyco+G9DtS2gqlf8F38IbrqaCKT99oMrjG4X9wfn GpC26QXQIckYPn6SGSa19IaNrG6wnqOWq1n8FP2aomCscGPnmYPgFTJYztiZg0IAOw/i hnN5la3R3EamxWfzJ/EvP3593iP+NOXQSklBCFvi+nL65GLFsQUeJQs9STwu2jRwsDwA LVCc6CxcXmZmq7KchqhpZHuxGVS6ntX2mryXErSLsfXMp7SAdeXuPcPZM8MaKX4Trz9s AX2beCctbedqSbZklnr/23uCwG/5oNhE3FmlULcBDANgRWc66mYDQKv/7rletEGJ06yd knew==
- In-reply-to: <1554886082.6252.3.camel@samsung.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: <CGME20190403190049epcas3p4c02406857f7f26510ea8969c969a655e@epcas3p4.samsung.com> <CAEpdsia8j9iKU_fv2yoA84bNhJOS14AtjfE8YkJEPz7rHJsJsw@mail.gmail.com> <1554373291.5874.3.camel@samsung.com> <1554886082.6252.3.camel@samsung.com>
On Wed, Apr 10, 2019 at 10:48 AM Peter Stephenson <p.stephenson@xxxxxxxxxxx>
wrote:
> On Thu, 2019-04-04 at 11:21 +0100, Peter Stephenson wrote:
>
> > Can somebody verify the following is equivalent apart from dealing with
> > a possible overlapping copy? I've no way of ensuring this code gets
> > exercised.
>
> I've applied this anyway.
>
I'm pretty sure your code is equivalent to the original (apart from being
correct if ranges overlap). It's also easier to understand.
Roman.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author