[geos-devel] [GEOS] #904: warning C4189 (appVeyor)
GEOS
geos-trac at osgeo.org
Sat Aug 4 12:14:03 PDT 2018
#904: warning C4189 (appVeyor)
------------------------+--------------------------
Reporter: cvvergara | Owner: geos-devel@…
Type: defect | Status: new
Priority: minor | Milestone: 3.6.3
Component: Unit Tests | Version: 3.6.2
Severity: Annoyance | Keywords:
------------------------+--------------------------
On AppVeyor:
{{{
bool d = delete_obj();
assert(d && "delete failed with SEH disabled: runtime bug?");
}}}
c:\projects\geos\tests\unit\tut\tut.hpp(238): warning C4189: 'd': local
variable is initialized but not referenced (compiling source file
C:\projects\geos\tests\unit\capi\GEOSVoronoiDiagramTest.cpp)
[C:\projects\geos\tests\unit\test_geos_unit.vcxproj]
Which means that the assertions are not processed.
But not such warning occurs when processing on Travis, which means that
the
assertions are being processed.
Possible solutions:
1) where needed:
{{{
::geos::ignore_unused_variable_warning(d);
}}}
2) on `appveyor.yml`
{{{
configuration: Debug
}}}
--
Ticket URL: <https://trac.osgeo.org/geos/ticket/904>
GEOS <http://trac.osgeo.org/geos>
GEOS (Geometry Engine - Open Source) is a C++ port of the Java Topology Suite (JTS).
More information about the geos-devel
mailing list