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. turn off all the build warning

turn off all the build warning

Scheduled Pinned Locked Moved Solved General and Desktop
5 Posts 2 Posters 484 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.
  • S Offline
    S Offline
    saber
    wrote on last edited by
    #1

    in my app i included some 3rd party library.
    as my app has different licensing so i can't fix those issue(or not capable of).so i want to turn off the warnings.
    i write this on the qmake of that 3rd party library. but warnings are still showing

    # CONFIG(release):DEFINES += warn_off
    

    i found that in this site qt
    i did i missed?

    jsulmJ 1 Reply Last reply
    0
    • S saber

      in my app i included some 3rd party library.
      as my app has different licensing so i can't fix those issue(or not capable of).so i want to turn off the warnings.
      i write this on the qmake of that 3rd party library. but warnings are still showing

      # CONFIG(release):DEFINES += warn_off
      

      i found that in this site qt
      i did i missed?

      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @saber I would not disable all warnings, you should not ignore warnings. Warnings can point to serious issues. In serious projects warnings are even treated as errors.
      To me it is not clear why you can't fix the warnings: can't you ask the authors of the library to fix them?

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      S 1 Reply Last reply
      1
      • jsulmJ jsulm

        @saber I would not disable all warnings, you should not ignore warnings. Warnings can point to serious issues. In serious projects warnings are even treated as errors.
        To me it is not clear why you can't fix the warnings: can't you ask the authors of the library to fix them?

        S Offline
        S Offline
        saber
        wrote on last edited by
        #3

        @jsulm
        the library is by lxqt.and they dose not want to put time and resource on fix this.
        also i have no complain on that .
        i just want to turn off all the 3rd party library warning as i have no intention or way to fix those.
        i know it is not a good practice , but on Release build i want to turn them off.

        jsulmJ 1 Reply Last reply
        0
        • S saber

          @jsulm
          the library is by lxqt.and they dose not want to put time and resource on fix this.
          also i have no complain on that .
          i just want to turn off all the 3rd party library warning as i have no intention or way to fix those.
          i know it is not a good practice , but on Release build i want to turn them off.

          jsulmJ Offline
          jsulmJ Offline
          jsulm
          Lifetime Qt Champion
          wrote on last edited by
          #4

          @saber Shouldn't it be

          CONFIG += warn_off
          

          ?

          https://forum.qt.io/topic/113070/qt-code-of-conduct

          S 1 Reply Last reply
          2
          • jsulmJ jsulm

            @saber Shouldn't it be

            CONFIG += warn_off
            

            ?

            S Offline
            S Offline
            saber
            wrote on last edited by
            #5

            @jsulm
            now it's working.
            thanks

            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