Opened 10 months ago

Closed 10 months ago

Last modified 10 months ago

#67791 closed defect (fixed)

grass7 @7.8.7: ISO C99 and later do not support implicit int

Reported by: ryandesign (Ryan Carsten Schmidt) Owned by: nilason (Nicklas Larsson)
Priority: Normal Milestone:
Component: ports Version: 2.8.1
Keywords: Cc: nilason (Nicklas Larsson)
Port: grass7

Description

grass7 fails to build with newer compilers like clang 16:

https://build.macports.org/builders/ports-10.8_x86_64-builder/builds/141432/steps/install-port/logs/stdio

main.c:1688:17: error: parameter 'imin' was not declared, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int]
void cube(jmin, imin)
                ^
main.c:1688:11: error: parameter 'jmin' was not declared, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int]
void cube(jmin, imin)
          ^
main.c:1688:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
void cube(jmin, imin)
     ^
1 warning and 2 errors generated.

Change History (4)

comment:1 Changed 10 months ago by ryandesign (Ryan Carsten Schmidt)

comment:2 Changed 10 months ago by nilason (Nicklas Larsson)

Cc: nilason added

comment:3 Changed 10 months ago by nilason (Nicklas Larsson)

Owner: set to nilason
Resolution: fixed
Status: newclosed

In 2680dad6cbe0bf57a6c099510dc87a02440624a7/macports-ports (master):

grass7: fix invalid implicit int

Implicit int (-Wimplicit-int) is considered an error with Clang 16+.
Backport of https://github.com/OSGeo/grass/commit/594c947ce8984f07faf28d7d71e4c902f4532069.

Closes #67791

comment:4 Changed 10 months ago by nilason (Nicklas Larsson)

Thanks Ryan for the heads-up!

Note: See TracTickets for help on using tickets.