Reputation: 341
How do you suppress the deprecation warning for one line of code?
Upvotes: 2
Views: 836
Reputation: 341
This code should accomplish what you're trying to do.
#pragma warning(push)
#pragma warning(disable: WARNING_CODE) //4996 for _CRT_SECURE_NO_WARNINGS
// Insert deprecated code here
#pragma warning(pop)
Upvotes: 2