相关疑难解决方法(0)

如何禁用#pragma警告?

在开发C++应用程序时,我不得不使用第三方库,它产生了大量与正在使用的无害#pragma指令相关的警告.

../File.hpp:1: warning: ignoring #pragma ident
In file included from ../File2.hpp:47,
                 from ../File3.hpp:57,
                 from File4.h:49,
Run Code Online (Sandbox Code Playgroud)

使用GNU C++编译器时是否可以禁用此类警告?

c++ compiler-construction warnings pragma

47
推荐指数
5
解决办法
7万
查看次数

标签 统计

c++ ×1

compiler-construction ×1

pragma ×1

warnings ×1