Page MenuHomeFreeBSD

print/libraqm: fix build with GCC-based architectures
ClosedPublic

Authored by pkubaj on Jun 11 2019, 6:22 PM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, May 10, 4:08 PM
Unknown Object (File)
Mon, May 6, 4:40 PM
Unknown Object (File)
Mon, May 6, 4:40 PM
Unknown Object (File)
Mon, May 6, 4:40 PM
Unknown Object (File)
Mon, May 6, 4:28 PM
Unknown Object (File)
Thu, May 2, 12:56 PM
Unknown Object (File)
Thu, May 2, 12:56 PM
Unknown Object (File)
Thu, May 2, 11:10 AM
Subscribers
None

Details

Summary

Don't shadow global variable index:
cc1: warnings being treated as errors
raqm.c: In function '_raqm_u32_to_u8_index':
raqm.c:1602: warning: declaration of 'index' shadows a global declaration
/usr/include/strings.h:62: warning: shadowed declaration is here
raqm.c: In function '_raqm_u8_to_u32_index':
raqm.c:1619: warning: declaration of 'index' shadows a global declaration
/usr/include/strings.h:62: warning: shadowed declaration is here
raqm.c: In function 'raqm_index_to_position':
raqm.c:1658: warning: declaration of 'index' shadows a global declaration
/usr/include/strings.h:62: warning: shadowed declaration is here
raqm.c: In function 'raqm_position_to_index':
raqm.c:1752: warning: declaration of 'index' shadows a global declaration
/usr/include/strings.h:62: warning: shadowed declaration is here

Fails to build with base GCC.

Diff Detail

Repository
rP FreeBSD ports repository
Lint
No Lint Coverage
Unit
No Test Coverage
Build Status
Buildable 24820
Build 23572: arc lint + arc unit

Event Timeline

This revision is now accepted and ready to land.Jun 13 2019, 9:09 PM
This revision was automatically updated to reflect the committed changes.