Thank you for your response.
I was previously following this link 3 and hence was using #pragma warning (disable…)
Following user_defined_macros 2, I still get the same deprecation errors.
I set the name to _SILENCE_CXX17_RESULT_OF_DEPRECATION_WARNING and value to 1. Also tried silence all, but nothing changes.