Hi. Is there a way to disable an arbitrary warning in project and only enabling it in certain parts of code?
I mean something like
#pragma warning disable C26451 // code #pragma warning restore C26451
but instead of enable by default and disable explicitly, disable by default and enable explicitly. I couldn't find "enable" in https://docs.microsoft.com/en-us/cpp/preprocessor/warning?view=msvc-160 but maybe there's a way to achieve this with push/pop, levels or otherwise.