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. No success getting warnings to disable using clang 64 bit on Mac
Forum Updated to NodeBB v4.3 + New Features

No success getting warnings to disable using clang 64 bit on Mac

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

    I have been trying several different methods to disable specific warnings with no luck. This seems to be the main way everyone says it should work. But nothing:
    @QMAKE_CXXFLAGS += -Wno-unused-parameter@

    This, however does work:
    @CONFIG += WARN_OFF@

    But I would prefer not to disable everything. Any ideas?

    1 Reply Last reply
    0
    • sierdzioS Offline
      sierdzioS Offline
      sierdzio
      Moderators
      wrote on last edited by
      #2

      To get rid of "unused parameter" warning, you can actually add this in offending methods in your code:
      @
      Q_UNUSED(unsedVariableName);
      @

      (Z(:^

      1 Reply Last reply
      0

      • Login

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