代码之家  ›  专栏  ›  技术社区  ›  HiFile.app - best file manager

在qtcreator中禁用特定警告

  •  2
  • HiFile.app - best file manager  · 技术社区  · 7 年前

    我安装了新的qtcreator,它与新的clang语言模型一起提供了许多有用的警告。但是其中一个让我很恼火: Winconsistent-missing-destructor-override . 如何禁用此警告并保留其他警告?

    更新:我说的是在qt creator ide(使用clang工具链)的文本编辑器中,作为在线警告得到的警告。我不是在讨论编译项目时产生的警告(在我的例子中是MSVC)。

    1 回复  |  直到 7 年前
        1
  •  12
  •   GKE    7 年前

    -Wno-inconsistent-missing-destructor-override

    here

    推荐文章