Re: Bison 3.5.92 on IRIX

Bruno Haible <[email protected]>
Newsgroups gmane.comp.parsers.bison.bugs
Message-ID <4427865.6uD3S8UnPL@omega>
There are a couple of GCC warnings on IRIX (CC="gcc -mabi=n32"):

1)
../src/complain.c: In function `syntax_error':
../src/complain.c:612: warning: subscript has type `char'

You need to cast the 'isdigit' argument to 'unsigned char' first.
Alternatively, using c_isdigit from the gnulib module 'c-ctype' would fix this.

2)
../src/fixits.c: In function `fixits_run':
../src/fixits.c:129: warning: dereferencing type-punned pointer will break strict-aliasing rules

Modern C rules wants f to be a 'const void *'. Inside the loop body,
you can cast f to 'fixit const *' without danger.

3)
../src/lalr.c: In function `goto_print':
../src/lalr.c:95: warning: long int format, goto_number arg (arg 3)

Bruno
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.