Page MenuHomeFreeBSD

games/stuntrally: fix build with GCC-based architectures
ClosedPublic

Authored by pkubaj on May 28 2019, 2:30 PM.

Details

Summary

Add -Wno-narrowing to CXXFLAGS when using GCC to fix build error.

PR: 237777

Diff Detail

Repository
rP FreeBSD ports repository
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

pkubaj created this revision.May 28 2019, 2:30 PM
This revision is now accepted and ready to land.May 29 2019, 4:19 AM
This revision was automatically updated to reflect the committed changes.
mat added a comment.May 29 2019, 8:20 AM

This can be written in a really simpler way like this:

CXXFLAGS+=  ${CXXFLAGS_${CHOOSEN_COPMILER_TYPE}}

CXXFLAGS_gcc= -Wno-narrowing

And no need to do the pre/post dance.