#pragma warning(disable:4996) // use specific numerical code

to make it local:

#ifdef _MSC_VER
#pragma warning(push)
#pragma warning(disable:4251) // prevents warnings about members without dll interface
#endif

if(bla)
{
  doSomething(ble, bli, blo, blu);
}

#ifdef _MSC_VER
#pragma warning(pop)
#endif