#16 use of inline in lex.c breaks with IRIX 5.3 cc

open
nobody
None
5
2004-12-04
2004-12-04
No

When compiling bmf 0.9.4 with the IRIX 5.3 cc one end up
with
cc -DNDEBUG -DNDEBUG -D_UNIX -O2 -c lex.c
cfe: Error: lex.c, line 185: Syntax Error
{
^
cfe: Warning 625: lex.c, line 186: Empty declaration
return ( c == ' ' || c == '\t' || c == '\r' );
-------------------------------------------------^
cfe: Error: lex.c, line 190: Syntax Error
{
^
cfe: Error: lex.c, line 191: Syntax Error
return ( ((__ctype + 1)[c] & (01 | 02 | 04 )) ||
(c == '/' || c == '+') );
-----------------------^
cfe: Warning 625: lex.c, line 191: Empty declaration
return ( ((__ctype + 1)[c] & (01 | 02 | 04 )) ||
(c == '/' || c == '+') );
-------------------------------------------------------
------------------------
...

This is due to the static inline definitions.
As a workaround, one can define inline to an empty
string, e.g. by adding Dinline= to the CFLAGS.

Discussion


Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks