[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH 5/5] bison: pacify Sun C 5.12
From: |
Akim Demaille |
Subject: |
Re: [PATCH 5/5] bison: pacify Sun C 5.12 |
Date: |
Tue, 22 Oct 2013 16:46:25 +0200 |
Le 22 oct. 2013 à 00:28, Paul Eggert <address@hidden> a écrit :
> @@ -342,8 +342,19 @@ show_sub_message (warnings warning,
> {
> static struct obstack msg_buf;
> const char *tail = explicit_bracketing ? "" : cp + strlen (var->id);
> - const char *id = var->hidden_by ? var->hidden_by->id : var->id;
> - location id_loc = var->hidden_by ? var->hidden_by->loc : var->loc;
> + const char *id;
> + location id_loc;
> +
> + if (var->hidden_by)
> + {
> + id = var->hidden_by->id;
> + id_loc = var->hidden_by->loc;
> + }
> + else
> + {
> + id = var->id;
> + id_loc = var->loc;
> + }
FWIW, I try to keep tabs out of Bison's sources. I don't know
if there is some .dir-locals.el magic that could easily
address this.
I untabified these.
- some minor patches for Solaris 10 etc., Paul Eggert, 2013/10/21
- [PATCH 1/5] maint: git now ignores .log and .trs files, Paul Eggert, 2013/10/21
- [PATCH 2/5] maint: mention help2man, texinfo, apt-get, Paul Eggert, 2013/10/21
- [PATCH 3/5] build: examples/calc++/calc++ requires flex, Paul Eggert, 2013/10/21
- [PATCH 4/5] maint: git now ignores rpcalc, Paul Eggert, 2013/10/21
- [PATCH 5/5] bison: pacify Sun C 5.12, Paul Eggert, 2013/10/21
- Re: [PATCH 5/5] bison: pacify Sun C 5.12,
Akim Demaille <=
- Re: [PATCH 5/5] bison: pacify Sun C 5.12, Akim Demaille, 2013/10/22
- Re: [PATCH 5/5] bison: pacify Sun C 5.12, Paul Eggert, 2013/10/22
- Re: [PATCH 5/5] bison: pacify Sun C 5.12, Akim Demaille, 2013/10/23
- Re: [PATCH 5/5] bison: pacify Sun C 5.12, Akim Demaille, 2013/10/23
- Re: [PATCH 5/5] bison: pacify Sun C 5.12, Akim Demaille, 2013/10/25
- Re: [PATCH 5/5] bison: pacify Sun C 5.12, Akim Demaille, 2013/10/29