Answer the question
In order to leave comments, you need to log in
warnings in MS Visual Studio 10
Good afternoon. The question is, when compiling a project in ms vs 10, in addition to warnings related directly to my code, a myriad of things fall out
…Is it possible to set up disabling warnings that are not directly related to the project files?
10>C:\Program Files\Microsoft SDKs\Windows\v7.0A\include\winbase.h(13588): warning C4820: tagHW_PROFILE_INFOA: "1"-byte fields added after data member "szHwProfileName"
10>C: \Program Files\Microsoft SDKs\Windows\v7.0A\include\winbase.h(13593): warning C4820: tagHW_PROFILE_INFOW: "2" byte fields added after data member "szHwProfileName"
10>C:\Program Files\Microsoft SDKs\Windows\v7.0A\include\winbase.h(14754): warning C4820: _FILE_BASIC_INFO: "4"-byte fields added after data member "FileAttributes"
10>C:\Program Files\Microsoft SDKs\Windows\v7 .0A\include\winbase.h(14762): warning C4820: _FILE_STANDARD_INFO: '2'-byte fields added after data member 'Directory'
10>C:\Program Files\Microsoft SDKs\Windows\v7.0A\include\winbase.h(14767): warning C4820: _FILE_NAME_INFO: '2' byte fields added after data member 'FileName'
....
Answer the question
In order to leave comments, you need to log in
There is no option to turn off external warnings.
ala design should help
#pragma warning(push)
#pragma warning(disable : WARNING NUMBER )
// тут любой код источник warning'a
// или можно includ'ить хидеры
#include<file.hpp>
#pragma warning(pop)
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question