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:
Martin Storsjö 2014-04-11 11:10:09 +03:00
parent efdb58dae5
commit ed62d01609

View File

@ -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