| 144 | == Miscellaneous == |
| 145 | |
| 146 | Those who build GEOS with GCC 6+ may appreciate consistent code format style as it will help to avoid some of the [https://developers.redhat.com/blog/2016/02/26/gcc-6-wmisleading-indentation-vs-goto-fail/ new compiler warnings]: |
| 147 | |
| 148 | {{{ |
| 149 | src/geom/Polygon.cpp: In member function ‘virtual int geos::geom::Polygon::getCoordinateDimension() const’: |
| 150 | src/geom/Polygon.cpp:154:5: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation] |
| 151 | if( shell != NULL ) |
| 152 | ^~ |
| 153 | src/geom/Polygon.cpp:157:2: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the ‘if’ |
| 154 | size_t nholes=holes->size(); |
| 155 | ^~~~~~ |
| 156 | }}} |
| 157 | |