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. More warnings on compilation on MinGW or Android
Forum Updated to NodeBB v4.3 + New Features

More warnings on compilation on MinGW or Android

Scheduled Pinned Locked Moved Solved General and Desktop
6 Posts 3 Posters 996 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.
  • L Offline
    L Offline
    lqsa
    wrote on last edited by
    #1

    When compile for iOS, the XCode compiler shows more warnings than compiling on Windows with MinGW. For exemple, in an inherited class that declare a method that exists in the inherited class, apperas this warning: <method name> hides overloaded virtual function. Or when overrides a method but not includes the override directive, appears this: <method name> overrides a member function but is not marked 'override'.

    How can I do to appear these warnings when compile for Windows or Android on windows environment?

    raven-worxR 1 Reply Last reply
    0
    • L lqsa

      When compile for iOS, the XCode compiler shows more warnings than compiling on Windows with MinGW. For exemple, in an inherited class that declare a method that exists in the inherited class, apperas this warning: <method name> hides overloaded virtual function. Or when overrides a method but not includes the override directive, appears this: <method name> overrides a member function but is not marked 'override'.

      How can I do to appear these warnings when compile for Windows or Android on windows environment?

      raven-worxR Offline
      raven-worxR Offline
      raven-worx
      Moderators
      wrote on last edited by
      #2

      @lqsa
      you can try to add the -Wall parameter to the compilation flags.

      --- SUPPORT REQUESTS VIA CHAT WILL BE IGNORED ---
      If you have a question please use the forum so others can benefit from the solution in the future

      1 Reply Last reply
      0
      • L Offline
        L Offline
        lqsa
        wrote on last edited by
        #3

        I've added QMAKE_CXXFLAGS += -Wall at the end of the .pro file, but nothing. I've tried QMAKE_CXXFLAGS += -Wall -Wpedantic also.

        raven-worxR 1 Reply Last reply
        0
        • L lqsa

          I've added QMAKE_CXXFLAGS += -Wall at the end of the .pro file, but nothing. I've tried QMAKE_CXXFLAGS += -Wall -Wpedantic also.

          raven-worxR Offline
          raven-worxR Offline
          raven-worx
          Moderators
          wrote on last edited by
          #4

          @lqsa
          did you rerun qmake before starting the compilation again?

          --- SUPPORT REQUESTS VIA CHAT WILL BE IGNORED ---
          If you have a question please use the forum so others can benefit from the solution in the future

          1 Reply Last reply
          0
          • L Offline
            L Offline
            lqsa
            wrote on last edited by
            #5

            Yes, and I've deleted the output directory also.

            1 Reply Last reply
            0
            • SGaistS Offline
              SGaistS Offline
              SGaist
              Lifetime Qt Champion
              wrote on last edited by
              #6

              Hi,

              Not all compilers provides the same set of warnings. IIRC, the hides overload warning is clang specific.

              Interested in AI ? www.idiap.ch
              Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

              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