LoginSignup
0
0

More than 1 year has passed since last update.

Visual C++でwarningの抑制 #pragma warning

Last updated at Posted at 2022-06-06

概要

#pragma warning を使えば警告を抑制することが出来ます。
外部ライブラリの警告を消すために有用ですが、本来は非推奨です。

使い方

警告を無視したい内容を #pragma warning で指定する。
#pragma push と pop で囲めば、その範囲のみで抑制することができます。

#pragma warning(push)
#pragma warning(disable:26812)
#pragma warning(disable:26495)
#include <fbxsdk.h> // このインクルードのみ警告を無視
#pragma warning(pop)

参考

0
0
2

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0