Re: GLR causing warning about _Noreturn in C99

2021-01-13 Thread Akim Demaille
> Le 14 janv. 2021 à 00:10, Joe Nelson a écrit : > > Akim Demaille wrote: >> I adjusted this patch for Bison. Could you please try this tarball >> before I install the appended patch into master? Thanks in advance. > > Build the version from source, and used it to generate my parser. It > w

Re: GLR causing warning about _Noreturn in C99

2021-01-13 Thread Joe Nelson
Akim Demaille wrote: > I adjusted this patch for Bison. Could you please try this tarball > before I install the appended patch into master? Thanks in advance. Build the version from source, and used it to generate my parser. It worked great, no warnings. :)

Re: GLR causing warning about _Noreturn in C99

2021-01-12 Thread Akim Demaille
Hi Joe, > Le 12 janv. 2021 à 00:59, Joe Nelson a écrit : > > Joe Nelson wrote: >> Ah, in that case I'll report the bug upstream in gnulib. When they fix >> it we can copy their updated code. > > OK, they fixed the bug in gnulib: > > https://git.savannah.gnu.org/gitweb/?p=gnulib.git;a=commit;h=

Re: GLR causing warning about _Noreturn in C99

2021-01-11 Thread Joe Nelson
Joe Nelson wrote: > Ah, in that case I'll report the bug upstream in gnulib. When they fix > it we can copy their updated code. OK, they fixed the bug in gnulib: https://git.savannah.gnu.org/gitweb/?p=gnulib.git;a=commit;h=077ffc1e416a6be980dd45979547201e572962f6 Here's the updated _Noreturn.h (

Re: GLR causing warning about _Noreturn in C99

2021-01-07 Thread Joe Nelson
Akim Demaille wrote: > Thanks for the report. No problem. Looks like I should have posted it to the bug-bison list though, rather than here. Oops. > > /* The _Noreturn keyword of C11. */ > > #ifndef _Noreturn > > ... > > This piece of code comes from gnulib (well, it was copied-past

Re: GLR causing warning about _Noreturn in C99

2021-01-05 Thread Akim Demaille
Hi Joe, Thanks for the report. > Le 3 janv. 2021 à 19:23, Joe Nelson a écrit : > > When I enable %glr-parser, it generates two functions marked with > _Noreturn: > > _Noreturn static void > yyFail (yyGLRStack* yystackp, void *scanner, const char* yymsg) > > _Noreturn static

GLR causing warning about _Noreturn in C99

2021-01-03 Thread Joe Nelson
When I enable %glr-parser, it generates two functions marked with _Noreturn: _Noreturn static void yyFail (yyGLRStack* yystackp, void *scanner, const char* yymsg) _Noreturn static void yyMemoryExhausted (yyGLRStack* yystackp) Since my compile flags include -std=c9