gpt4 book ai didi

c++ - 在 Qt Creator 中禁用编译器警告项目范围(使用 MSVC 时)

转载 作者:塔克拉玛干 更新时间:2023-11-03 00:20:34 25 4
gpt4 key购买 nike

我想禁用特定警告,例如 C++ warning C4018: '<' : signed/unsigned mismatch ,但在整个项目范围内。我需要在我的 .pro 文件中放入什么才能达到这种效果?

最佳答案

将以下行添加到您的 PRO 文件中:

QMAKE_CXXFLAGS += /wd4996

关于c++ - 在 Qt Creator 中禁用编译器警告项目范围(使用 MSVC 时),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18454509/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com