Changes between Version 13 and Version 14 of RFC4


Ignore:
Timestamp:
Mar 26, 2017, 11:56:04 AM (7 years ago)
Author:
mloskot
Comment:

Add GCC6 warnings

Legend:

Unmodified
Added
Removed
Modified
  • RFC4

    v13 v14  
    142142Set up Travis CI "style safety valve" build dedicated to run clang-format lint based on the approach used in `​clang_format.py` script by MongoDB.
    143143
     144== Miscellaneous ==
     145
     146Those 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{{{
     149src/geom/Polygon.cpp: In member function ‘virtual int geos::geom::Polygon::getCoordinateDimension() const’:
     150src/geom/Polygon.cpp:154:5: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation]
     151     if( shell != NULL )
     152     ^~
     153src/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
    144158== References ==
    145159