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

enums type, declared in functions is incorrectly marked as "unused variable"

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • None
    • Qt Creator 1.3.81 (2.0.0-alpha)
    • C/C++/Obj-C++ Support
    • None
    • MacOS X 10.6

    Description

      In the following code fragment

      int main(int argc, char* argv[])
      {
          enum Status { lalala, lululu, lilili };
          Status s = lalala;
          printf("%d", status);
      }
      

      in the line

          Status s = lalala;
      

      Status is underlined and marked as "unused variable".

      Attachments

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

        Activity

          People

            leamelo Leandro T. C. Melo
            jbornema Joerg Bornemann
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes