Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. ..another bug or feature ?
Forum Updated to NodeBB v4.3 + New Features

..another bug or feature ?

Scheduled Pinned Locked Moved Unsolved Qt Creator and other tools
2 Posts 2 Posters 205 Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    Anonymous_Banned275
    wrote on last edited by
    #1

    I have "report / post unused variables " disabled . Works as expected , except
    when there is a real error posted . Then the output is again cluttered with unwanted report of unused variables.

    Should I post a bug ?

    1 Reply Last reply
    0
    • M Offline
      M Offline
      mchinand
      wrote on last edited by mchinand
      #2

      Those warnings are produced by two separate things depending on where you see them; a) by the Code Model if you see the warning along with your code in the editor window and b) by the compiler if you see the warning in the Compile Output window. The options of these two are set separately. If you want to also disable it in the compile output, you can add the following to your .pro project file (I think this option is only valid for gcc, so you might want to put it inside a conditional 'unix' block):

      QMAKE_CXXFLAGS += -Wno-unused-variable
      
      1 Reply Last reply
      3

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved