Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. How to set a warning and an error flag
Forum Updated to NodeBB v4.3 + New Features

How to set a warning and an error flag

Scheduled Pinned Locked Moved Unsolved General and Desktop
2 Posts 2 Posters 674 Views
  • 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.
  • M Offline
    M Offline
    mchome
    wrote on last edited by
    #1

    I have two related issues (I use latest Qt and Qt creator: updated this morning).

    1. I would like to temporarily disable all the warnings of one type from the code annotations: in many cases I get annotations saying: "-Wdeprecated-declarations". But I could not find where and how to insert this option to disable display of this kind of warning
    2. From a different contest I read that Clang has a -Werror=uninitalized flag that issues an error, whenever it finds an unitialized variable. Maybe this is just another flag to be used as the one in issue 1) above?
      Thank anyone that helps.
    JonBJ 1 Reply Last reply
    0
    • M mchome

      I have two related issues (I use latest Qt and Qt creator: updated this morning).

      1. I would like to temporarily disable all the warnings of one type from the code annotations: in many cases I get annotations saying: "-Wdeprecated-declarations". But I could not find where and how to insert this option to disable display of this kind of warning
      2. From a different contest I read that Clang has a -Werror=uninitalized flag that issues an error, whenever it finds an unitialized variable. Maybe this is just another flag to be used as the one in issue 1) above?
        Thank anyone that helps.
      JonBJ Offline
      JonBJ Offline
      JonB
      wrote on last edited by JonB
      #2

      @mchome

      • For compiler warning flags, you must edit the .pro file (QMAKE_CXXFLAGS).

      • For editing warning flags: Tools > Options... > Code Model > Clang Code Model > Manage... button.

      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