[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: bison-3.1.91 released [beta]
From: |
Derek Clegg |
Subject: |
Re: bison-3.1.91 released [beta] |
Date: |
Mon, 22 Oct 2018 12:10:03 -0500 |
On Oct 22, 2018, at 10:42 AM, Akim Demaille <address@hidden> wrote:
>
> Hi Derek!
>
>> Le 21 oct. 2018 à 19:43, Derek Clegg <address@hidden> a écrit :
>>
>> I’m seeing a minor warning when building bison-3.1.91:
>>
>> lib/obstack.c:351:31: warning: incompatible pointer types initializing 'void
>> (*)(void) __attribute__((noreturn))' with an expression of type
>> 'void (void)' [-Wincompatible-pointer-types]
>> __attribute_noreturn__ void (*obstack_alloc_failed_handler) (void)
>> ...
>
> This is coming from gnulib. Could you submit your patch there?
> I don’t know how they handle _Noreturn.
>
> address@hidden
Thanks for the reply; I’ll do that. I’ll note that data/c.m4 has this:
#if !defined _Noreturn \
&& (!defined __STDC_VERSION__ || __STDC_VERSION__ < 201112)
# if defined _MSC_VER && 1200 <= _MSC_VER
# define _Noreturn __declspec (noreturn)
# else
# define _Noreturn YY_ATTRIBUTE ((__noreturn__))
# endif
#endif
That makes it into the generated header, and produces the warning
aux/x.h:97:11: error: macro name is a reserved identifier
[-Werror,-Wreserved-id-macro]
# define _Noreturn YY_ATTRIBUTE ((__noreturn__))
As this isn’t used anywhere (as far as I can tell), it seems reasonable to omit
it.
Thanks!
Derek
- bison-3.1.90 released [beta], Akim Demaille, 2018/10/17
- Re: bison-3.1.91 released [beta], Derek Clegg, 2018/10/21
- Re: bison-3.1.91 released [beta], Akim Demaille, 2018/10/22
- Re: bison-3.1.91 released [beta], Akim Demaille, 2018/10/23
- Re: bison-3.1.91 released [beta], Akim Demaille, 2018/10/23
- Re: bison-3.1.91 released [beta], Paul Eggert, 2018/10/23
- Re: bison-3.1.91 released [beta], Akim Demaille, 2018/10/24
- Re: bison-3.1.91 released [beta], Akim Demaille, 2018/10/24