Use _CRT_SECURE_NO_WARNINGS to avoid warnings in the encoder version of read_config.cpp as well
This is clearer and requires less code than using the pragmas for disabling warnings.
This commit is contained in:
parent
efdb58dae5
commit
ed62d01609
@ -38,15 +38,11 @@
|
||||
*
|
||||
*****************************************************************************/
|
||||
|
||||
#define _CRT_SECURE_NO_WARNINGS
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
#include "read_config.h"
|
||||
|
||||
#if defined(_MSC_VER)
|
||||
#pragma warning(push)
|
||||
#pragma warning(disable:4996)
|
||||
#endif
|
||||
|
||||
CReadConfig::CReadConfig()
|
||||
: m_pCfgFile (NULL)
|
||||
, m_strCfgFileName ("")
|
||||
@ -141,7 +137,3 @@ const bool CReadConfig::ExistFile() {
|
||||
const string& CReadConfig::GetFileName() {
|
||||
return m_strCfgFileName;
|
||||
}
|
||||
|
||||
#if defined(_MSC_VER)
|
||||
#pragma warning(pop)
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user