https://bugs.kde.org/show_bug.cgi?id=425166

            Bug ID: 425166
           Summary: warning: enum constant in boolean context
                    [-Wint-in-bool-context]
           Product: frameworks-kdeclarative
           Version: 5.65.0
          Platform: Other
                OS: Microsoft Windows
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: general
          Assignee: notm...@gmail.com
          Reporter: ralf.habac...@freenet.de
                CC: kdelibs-b...@kde.org
  Target Milestone: ---

SUMMARY
While cross compiling kdeclarative I got the following warning

[   96s]
/home/abuild/rpmbuild/BUILD/kdeclarative-5.65.0/src/qmlcontrols/kquickcontrols/private/keysequencehelper.cpp:
In member function 'bool
KeySequenceHelperPrivate::conflictWithGlobalShortcuts(const QKeySequence&)':
[   96s]
/home/abuild/rpmbuild/BUILD/kdeclarative-5.65.0/src/qmlcontrols/kquickcontrols/private/keysequencehelper.cpp:273:99:
warning: enum constant in boolean context [-Wint-in-bool-context]
[   96s]   273 |     if (KeySequenceHelper::GlobalShortcuts &&
keySequence.toString().contains(QLatin1String("F12"))) {

STEPS TO REPRODUCE
1. register at https://build.opensuse.org
2a. inspect build log at
https://build.opensuse.org/package/live_build_log/home:rhabacker:branches:windows:mingw:win32:KF565/mingw32-kdeclarative/openSUSE_Leap_15.2/x86_64
 
or
2b. on opensuse os install osc with 
  sudo zypper install osc
3. run 
  osc co home:rhabacker:branches:windows:mingw:win32:KF565/mingw32-kdeclarative
  cd home:rhabacker:branches:windows:mingw:win32:KF565/mingw32-kdeclarative
  osc build openSUSE_Leap_15.2 -jxx (with xx number of threads)
4. inspect build log

OBSERVED RESULT
The mentioned warning appears

EXPECTED RESULT
The mentioned warning should not appear


SOFTWARE/OS VERSIONS
Windows: cross compiled on openSUSE Leap
KDE Frameworks Version: 5.65
Qt Version: 5.11

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to