gcc warning" 'will be initialized after'

前端 未结 7 802
走了就别回头了
走了就别回头了 2020-12-22 16:38

I am getting a lot of these warnings from 3rd party code that I cannot modify. Is there a way to disable this warning or at least disable it for certain areas (like #pragma

7条回答
  •  伪装坚强ぢ
    2020-12-22 17:32

    For those using QT having this error, add this to .pro file

    QMAKE_CXXFLAGS_WARN_ON += -Wno-reorder
    

提交回复
热议问题