Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-59615

src/multimedia/camera/qcamera.h:261:36: error: comparing floating point with == or != is unsafe [-Werror=float-equal]

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P0: Blocker
    • 5.9.0 Beta 2
    • 5.10
    • Multimedia
    • None
    • e5ee1e036eaecb91797cbe85ac7f8929145f3d65

    Description

      https://codereview.qt-project.org/#/c/187993/
      http://testresults.qt.io/coin/integration/qt/qt5/tasks/1490031461
      http://testresults.qt.io/logs/qt/qtmultimedia/1794fdf964b32f28132eaa5c3289eadef0f18e82/LinuxUbuntu_14_04x86_64LinuxUbuntu_14_04x86_64GCCqtci-linux-Ubuntu-14.04-x86_64-4577f2DeveloperBuild_OutOfSourceBuild_QtLibInfix_QtNamespace/cc33633404bc466e1f985e02ea2778bb9e59f0ae/build_1490031827/buildlog.txt.gz

      In file included from ../../include/QtMultimedia/qcamera.h:1:0,
                       from /home/qt/work/qt/qtmultimedia/src/multimedia/qmediaserviceproviderplugin.h:47:
      ../../include/QtMultimedia/../../../qt/qtmultimedia/src/multimedia/camera/qcamera.h: In function ‘constexpr bool TestNamespace::operator==(const TestNamespace::QCamera::FrameRateRange&, const TestNamespace::QCamera::FrameRateRange&)’:
      ../../include/QtMultimedia/../../../qt/qtmultimedia/src/multimedia/camera/qcamera.h:261:36: error: comparing floating point with == or != is unsafe [-Werror=float-equal]
       { return r1.minimumFrameRate == r2.minimumFrameRate && r1.maximumFrameRate == r2.maximumFrameRate; }
                                          ^
      ../../include/QtMultimedia/../../../qt/qtmultimedia/src/multimedia/camera/qcamera.h:261:82: error: comparing floating point with == or != is unsafe [-Werror=float-equal]
       { return r1.minimumFrameRate == r2.minimumFrameRate && r1.maximumFrameRate == r2.maximumFrameRate; }
                                                                                        ^
      
      

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            thiago Thiago Macieira
            liaqi Liang Qi
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes