solvespace/srf
Daniel Richard G 0afb5618ce Quash warnings for floating-point equality comparisons
GCC and Clang's -Wfloat-equal warning notes that comparing floating-point
values with == or != may be questionable. But the few instances of these in
SolveSpace are defensibly correct (as discussed with Jonathan), so to keep
folks from getting nervous that a CAD application isn't handling its floats
correctly, we define an EXACT() macro inside which the -Wfloat-equal
warning is disabled. This macro will also serve as a source-code
annotation, like a comment but better.

(The warning is only disabled for Clang, alas, because GCC is particular
about where _Pragma() can be used. This isn't so bad, however, because the
warning is much easier to enable on Clang [thanks to -Weverything], whereas
with GCC it has to be requested explicitly.)
2013-10-28 00:43:37 -04:00
..
boolean.cpp Various fixes for warnings and minutia 2013-10-28 00:42:39 -04:00
curve.cpp Changes in preparation for the release of SolveSpace under the GPL, 2013-07-28 14:08:34 -08:00
merge.cpp Replaced RGB-color integers with dedicated data structure 2013-10-25 01:49:12 -04:00
ratpoly.cpp Quash warnings for floating-point equality comparisons 2013-10-28 00:43:37 -04:00
raycast.cpp Quash "variable may be used uninitialized" warnings 2013-08-26 15:36:00 -04:00
surface.cpp Replaced RGB-color integers with dedicated data structure 2013-10-25 01:49:12 -04:00
surface.h Replaced RGB-color integers with dedicated data structure 2013-10-25 01:49:12 -04:00
surfinter.cpp Various fixes for warnings and minutia 2013-10-28 00:42:39 -04:00
triangulate.cpp Use C99 integer types and C++ boolean types/values 2013-10-02 01:45:13 -04:00