Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-21031

Static Helper Erroneously Detected as Unused

    XMLWordPrintable

Details

    • Windows

    Description

      In the latest Qt Creator, my helper method for settings keys is being detected as unused:
      static inline QString styleNameKey()

      { return QStringLiteral("styleName"); }

      I am most certainly using it and in two different sources which include the header that defines this helper. I have rerun qmake and done a clean/rebuild all. I continue to be presented a warning about the helper function being unused.

      PreferencesKeys.h:16: warning: unused function 'styleNameKey'

      Attachments

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

        Activity

          People

            bubke Marco Bubke
            RobertBColton Robert B. Colton
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes