I have seen this as the first lines in some library code that
I am reading:
#if defined(_MSC_VER)
#pragma warning ( disable : 4786 )
#endif
Anyone that can tell me what it does?
Whatever the implementation documentation says it does. (I.e.
nothing, on most implementations.) _MSC_VER is in the
implementation namespace ; if the implementation defines it,
then this should be documented. If it's not defined, then of
course, the bit of code does nothing. If it is defined, the bit
of code invokes a pragma, which is implementation defined.
Which means, again, it should be documented; if it isn't, then
the pragma is also a no-op. (And again, this is probably the
case on most machines.)
So I'd suggest you start by reading your compiler's
documentation. If there's nothing there mentionning a "pragma
warning", then it should be a safe bet that the code is a no-op.