]> sourceware.org Git - lvm2.git/commit
gcc: fix comparing floating point warning
authorZdenek Kabelac <zkabelac@redhat.com>
Fri, 25 Oct 2013 08:38:09 +0000 (10:38 +0200)
committerZdenek Kabelac <zkabelac@redhat.com>
Fri, 25 Oct 2013 08:43:32 +0000 (10:43 +0200)
commit8e1f2e733ecb191a1dda149ac42e2570142a1d97
treed4290ce07bf0d5a2c16035f79edf0c9546381b7d
parentd4e5140b5284cac151d06615328dc8af21dc15c7
gcc: fix comparing floating point warning

Since we enabled some more gcc warnings - let's adapt for
it and check for double equals with DBL_EPSILON.

Current close_enough() is far from perfect
for more details see i.e. here:
http://randomascii.wordpress.com/2012/01/11/tricks-with-the-floating-point-format/
but fairly enough for lvm2 use-case.
WHATS_NEW
daemons/lvmetad/lvmetad-core.c
lib/display/display.c
This page took 0.041555 seconds and 5 git commands to generate.