Fixed #12933: added cast to silence clang -Wcomma warning
authorSean McBride <sean@rogue-research.com>
Thu, 25 Oct 2018 17:27:17 +0000 (13:27 -0400)
committerSean McBride <sean@rogue-research.com>
Thu, 25 Oct 2018 17:27:17 +0000 (13:27 -0400)
modules/core/include/opencv2/core/cvdef.h

index 558ce2d..c8c2a74 100644 (file)
@@ -814,7 +814,7 @@ protected:
 
         out.u = t + (1 << 23);
         out.u = (e >= 0x7c00 ? t + 0x38000000 :
-                 e == 0 ? (out.f -= 6.103515625e-05f, out.u) : t) | sign;
+                 e == 0 ? (static_cast<void>(out.f -= 6.103515625e-05f), out.u) : t) | sign;
         return out.f;
     #endif
     }