-
Notifications
You must be signed in to change notification settings - Fork 74
Open
Description
I am using this project and when I run make I get the following warning:
shpgeo.c:1352:18: warning: using the result of an assignment as a condition without parentheses [-Wparentheses]
if (highPart = psCShape->nParts)
~~~~~~~~~^~~~~~~~~~~~~~~~~~
shpgeo.c:1352:18: note: place parentheses around the assignment to silence this warning
if (highPart = psCShape->nParts)
^
( )
shpgeo.c:1352:18: note: use '==' to turn this assignment into an equality comparison
if (highPart = psCShape->nParts)
^
==
Looking inside shpgeo.c at line 1352 it seems like maybe it should be ==. But I am not sure what it's supposed to be!
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels