Hello everyone,

There is a strange situation with my project now. In the stdafx.h file I
have a following #pragma directive:
#pragma warning( disable : 4786 )

Since it is in stdafx.h, this directive is global.

It worked fine for a long time, but after the latest changes (there are a
lot of them actually so I would be reluctant to roll back) I receive dozens
of warnings C4786 during compilation. It does not prevent the program from
being built but I am still curious - how could it be? And of course it is
pretty annoying :(
Any ideas?
Thank you!

Mike

Re: #pragma warning has no effect by Sigurd

Sigurd
Fri Oct 01 04:21:53 CDT 2004

Mikhail Faynberg wrote:
> There is a strange situation with my project now. In the stdafx.h
> file I have a following #pragma directive:
> #pragma warning( disable : 4786 )
>
> Since it is in stdafx.h, this directive is global.
>
> It worked fine for a long time, but after the latest changes (there
> are a lot of them actually so I would be reluctant to roll back) I
> receive dozens of warnings C4786 during compilation. It does not
> prevent the program from being built but I am still curious - how
> could it be? And of course it is pretty annoying :(

Does a complete rebuild help ?

If not, then search all the headers you use for a warning pragma that
enables this warning or sets the warning level. (Investigate all occurences
of "#pragma warning" in the headers.)


--


Sigurd
http://utvikling.com



Re: #pragma warning has no effect by Murrgon

Murrgon
Fri Oct 01 08:24:54 CDT 2004

If you are using VC6 (or earlier) then check out these links:

http://support.microsoft.com/default.aspx?scid=kb;EN-US;q167355

http://www.flipcode.com/cgi-bin/msg.cgi?showThread=00001780&forum=general&id=-1


Mikhail Faynberg wrote:
> Hello everyone,
>
> There is a strange situation with my project now. In the stdafx.h file I
> have a following #pragma directive:
> #pragma warning( disable : 4786 )
>
> Since it is in stdafx.h, this directive is global.
>
> It worked fine for a long time, but after the latest changes (there are a
> lot of them actually so I would be reluctant to roll back) I receive dozens
> of warnings C4786 during compilation. It does not prevent the program from
> being built but I am still curious - how could it be? And of course it is
> pretty annoying :(
> Any ideas?
> Thank you!
>
> Mike
>
>