Advertisement
lamiastella

To disable deprecation, use _CRT_SECURE_NO_WARNINGS

Jul 14th, 2017
253
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.59 KB | None | 0 0
  1. void _setDestination(const char* name)
  2.     {
  3.         if (name==NULL) {
  4.             stream = stdout;
  5.         }
  6.         else {
  7.             stream = fopen(name,"w");
  8.             if (stream == NULL) {
  9.                 stream = stdout;
  10.             }
  11.         }
  12.     }
  13.  
  14. Severity    Code    Description Project File    Line    Category    Source  Suppression State   Tool
  15. Error   C4996   'fopen': This function or variable may be unsafe. Consider using fopen_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. OpenARK-test    c:\opencv\build\include\opencv2\flann\logger.h  66      Build
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement