Opened 3 weeks ago

#57985 assigned defect

ruby26 @2.6.0: error: ‘for’ loop initial declaration used outside C99 mode

Reported by: ryandesign (Ryan Schmidt) Owned by: kimuraw (kimura wataru)
Priority: Normal Milestone:
Component: ports Version:
Keywords: tiger leopard snowleopard Cc:
Port: ruby26

Description

ruby26 fails to build with compilers that default to C89 mode:

addr2line.c:15: warning: unknown option after ‘#pragma GCC diagnostic’ kind
addr2line.c: In function ‘di_find_abbrev’:
addr2line.c:1210: error: ‘for’ loop initial declaration used outside C99 mode
addr2line.c: In function ‘debug_info_read’:
addr2line.c:1558: error: ‘for’ loop initial declaration used outside C99 mode
addr2line.c: In function ‘fill_lines’:
addr2line.c:1904: error: ‘for’ loop initial declaration used outside C99 mode
addr2line.c:1940: error: ‘for’ loop initial declaration used outside C99 mode
addr2line.c:1958: error: ‘for’ loop initial declaration used outside C99 mode
addr2line.c:1961: error: ‘for’ loop initial declaration used outside C99 mode
addr2line.c:1999: error: ‘for’ loop initial declaration used outside C99 mode
make: *** [addr2line.o] Error 1

Change History (0)

Note: See TracTickets for help on using tickets.