New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix GCC warnings #162
Fix GCC warnings #162
Conversation
Patch by Darafei Praliaskouski <me@komzpa.net> Obey const pointer in autofix logic.
liblwgeom/lwgeom_geos.c
Outdated
{ | ||
ptarray_append_point(pa, getPoint_internal(pa, 0), LW_TRUE); | ||
ptarray_append_point(npa, (POINT4D*)getPoint_internal(npa, 0), LW_TRUE); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would you use getPoint4d_p instead? Getting addicted to pointing right into the array is a good way to start reading off the end of it.
Very not good, in
|
Why all this mucking around screwing w/ const inputs in ptarray_to_GEOSLinearRing when in ptarray_to_GEOSCoordSeq you can create and return a coordseq of the desired size without mutating the input (and, btw, breaking the const contract!) |
Trac ticket: https://trac.osgeo.org/postgis/ticket/3900 |
Committed |
Patch by Darafei Praliaskouski me@komzpa.net
Obey const pointer in autofix logic.