Disable MSVC warnings
This commit is contained in:
parent
1f2fc4b132
commit
87a4e6f763
@ -541,7 +541,7 @@ static bool SwitchLanguage(word crc, char* str) {
|
|||||||
}
|
}
|
||||||
return 0;
|
return 0;
|
||||||
} else
|
} else
|
||||||
return -1;
|
return bool(-1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -577,7 +577,7 @@ void LangInit() {
|
|||||||
|
|
||||||
LNG = (LangGed*)throw_calloc(1, sizeof(LangGed));
|
LNG = (LangGed*)throw_calloc(1, sizeof(LangGed));
|
||||||
LNG->Outofmem = throw_strdup("Out of memory!");
|
LNG->Outofmem = throw_strdup("Out of memory!");
|
||||||
|
|
||||||
// Init LangCrc pointers to LNG
|
// Init LangCrc pointers to LNG
|
||||||
char** lptr = (char**)LNG;
|
char** lptr = (char**)LNG;
|
||||||
for(LangCrc* lngptr = LangCrcs; lngptr->crc != CRC_LAST_CRC; lngptr++, lptr++)
|
for(LangCrc* lngptr = LangCrcs; lngptr->crc != CRC_LAST_CRC; lngptr++, lptr++)
|
||||||
@ -698,7 +698,7 @@ bool ReadLangCfg(int force) {
|
|||||||
char buf[1024];
|
char buf[1024];
|
||||||
LangCrc* lngptr;
|
LangCrc* lngptr;
|
||||||
int line = 0;
|
int line = 0;
|
||||||
|
|
||||||
// Read the GOLDLANG.CFG if there is one
|
// Read the GOLDLANG.CFG if there is one
|
||||||
const char* cfgname = AddPath(CFG->goldpath, CFG->langcfg);
|
const char* cfgname = AddPath(CFG->goldpath, CFG->langcfg);
|
||||||
fpi = fsopen(cfgname, "rt", CFG->sharemode);
|
fpi = fsopen(cfgname, "rt", CFG->sharemode);
|
||||||
@ -748,7 +748,7 @@ bool ReadLangCfg(int force) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
AssignDateNames();
|
AssignDateNames();
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -27,6 +27,13 @@
|
|||||||
#if defined(__MINGW32__) || defined(_MSC_VER)
|
#if defined(__MINGW32__) || defined(_MSC_VER)
|
||||||
#include <malloc.h>
|
#include <malloc.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if defined(_MSC_VER) && defined(_DEBUG)
|
||||||
|
/* C4786: 'identifier' : identifier was truncated to 'number'
|
||||||
|
characters in the debug information
|
||||||
|
*/
|
||||||
|
#pragma warning(disable: 4786)
|
||||||
|
#endif
|
||||||
#include <algorithm>
|
#include <algorithm>
|
||||||
#include <golded.h>
|
#include <golded.h>
|
||||||
|
|
||||||
|
@ -24,6 +24,12 @@
|
|||||||
// Template handling.
|
// Template handling.
|
||||||
// ------------------------------------------------------------------
|
// ------------------------------------------------------------------
|
||||||
|
|
||||||
|
#if defined(_MSC_VER) && defined(_DEBUG)
|
||||||
|
/* C4786: 'identifier' : identifier was truncated to 'number'
|
||||||
|
characters in the debug information
|
||||||
|
*/
|
||||||
|
#pragma warning(disable: 4786)
|
||||||
|
#endif
|
||||||
#include <algorithm>
|
#include <algorithm>
|
||||||
#include <golded.h>
|
#include <golded.h>
|
||||||
|
|
||||||
|
@ -90,6 +90,12 @@
|
|||||||
#define __inline__ __inline
|
#define __inline__ __inline
|
||||||
#define __extension__
|
#define __extension__
|
||||||
#define __MSVCRT__
|
#define __MSVCRT__
|
||||||
|
#ifdef _DEBUG
|
||||||
|
/* C4786: 'identifier' : identifier was truncated to 'number'
|
||||||
|
characters in the debug information
|
||||||
|
*/
|
||||||
|
#pragma warning(disable: 4786)
|
||||||
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* --------------------------------------------------------------- */
|
/* --------------------------------------------------------------- */
|
||||||
|
@ -31,9 +31,6 @@
|
|||||||
|
|
||||||
|
|
||||||
// ------------------------------------------------------------------
|
// ------------------------------------------------------------------
|
||||||
#if defined(_MSC_VER)
|
|
||||||
#pragma warning(disable: 4200)
|
|
||||||
#endif
|
|
||||||
#include <gdefs.h>
|
#include <gdefs.h>
|
||||||
#if defined(__USE_NCURSES__)
|
#if defined(__USE_NCURSES__)
|
||||||
#include <gcurses.h>
|
#include <gcurses.h>
|
||||||
@ -41,6 +38,9 @@
|
|||||||
#if defined(__WIN32__)
|
#if defined(__WIN32__)
|
||||||
#include <windows.h>
|
#include <windows.h>
|
||||||
#endif
|
#endif
|
||||||
|
#if defined(_MSC_VER)
|
||||||
|
#pragma warning(disable: 4200)
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
// ------------------------------------------------------------------
|
// ------------------------------------------------------------------
|
||||||
|
Reference in New Issue
Block a user