mirror of
https://github.com/cc65/cc65.git
synced 2024-12-26 08:32:00 +00:00
Allow for warning-free build of ld65 with MS VC on warning level 3.
This commit is contained in:
parent
da255245ad
commit
d38b008080
@ -369,7 +369,7 @@ void PrintDbgSyms (FILE* F)
|
|||||||
"sym\tid=%u,name=\"%s\",addrsize=%s",
|
"sym\tid=%u,name=\"%s\",addrsize=%s",
|
||||||
O->SymBaseId + J,
|
O->SymBaseId + J,
|
||||||
GetString (S->Name),
|
GetString (S->Name),
|
||||||
AddrSizeToStr (S->AddrSize));
|
AddrSizeToStr ((unsigned char) S->AddrSize));
|
||||||
|
|
||||||
/* Emit the size only if we know it */
|
/* Emit the size only if we know it */
|
||||||
if (S->Size != 0) {
|
if (S->Size != 0) {
|
||||||
|
@ -674,8 +674,8 @@ static void CheckSymType (const Export* E)
|
|||||||
/* Export and import address sizes do not match */
|
/* Export and import address sizes do not match */
|
||||||
StrBuf ExportLoc = STATIC_STRBUF_INITIALIZER;
|
StrBuf ExportLoc = STATIC_STRBUF_INITIALIZER;
|
||||||
StrBuf ImportLoc = STATIC_STRBUF_INITIALIZER;
|
StrBuf ImportLoc = STATIC_STRBUF_INITIALIZER;
|
||||||
const char* ExpAddrSize = AddrSizeToStr (E->AddrSize);
|
const char* ExpAddrSize = AddrSizeToStr ((unsigned char) E->AddrSize);
|
||||||
const char* ImpAddrSize = AddrSizeToStr (I->AddrSize);
|
const char* ImpAddrSize = AddrSizeToStr ((unsigned char) I->AddrSize);
|
||||||
const LineInfo* ExportLI = GetExportPos (E);
|
const LineInfo* ExportLI = GetExportPos (E);
|
||||||
const LineInfo* ImportLI = GetImportPos (I);
|
const LineInfo* ImportLI = GetImportPos (I);
|
||||||
|
|
||||||
@ -884,7 +884,7 @@ void PrintExportMap (FILE* F)
|
|||||||
GetExportVal (E),
|
GetExportVal (E),
|
||||||
E->ImpCount? 'R' : ' ',
|
E->ImpCount? 'R' : ' ',
|
||||||
SYM_IS_LABEL (E->Type)? 'L' : 'E',
|
SYM_IS_LABEL (E->Type)? 'L' : 'E',
|
||||||
GetAddrSizeCode (E->AddrSize),
|
GetAddrSizeCode ((unsigned char) E->AddrSize),
|
||||||
SYM_IS_CONDES (E->Type)? 'I' : ' ');
|
SYM_IS_CONDES (E->Type)? 'I' : ' ');
|
||||||
if (++Count == 2) {
|
if (++Count == 2) {
|
||||||
Count = 0;
|
Count = 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user