Changeset 3064 in kBuild
- Timestamp:
- Sep 30, 2017 11:38:48 AM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/kmk/kmkbuiltin/kDepObj.c
r2955 r3064 53 53 # define dprintf(a) printf a 54 54 # define dump(pb, cb, offBase) depHexDump(pb,cb,offBase) 55 # define WITH_DPRINTF 55 56 #else 56 57 # define dprintf(a) do {} while (0) 57 58 # define dump(pb, cb, offBase) do {} while (0) 59 # undef WITH_DPRINTF 58 60 #endif 59 61 … … 387 389 if (uSeg == KU16_MAX) 388 390 return kDepErr(1, "%#07lx - Bad LINNUM32 record\n", (long)((const KU8 *)pHdr - pbFile)); 391 K_NOREF(uGrp); 389 392 390 393 if (uLinNumType == KU8_MAX) 391 394 { 395 #ifdef WITH_DPRINTF 392 396 static const char * const s_apsz[5] = 393 397 { 394 398 "source file", "listing file", "source & listing file", "file names table", "path table" 395 399 }; 400 #endif 396 401 KU16 uLine; 397 402 KU8 uReserved; … … 404 409 uLine = *uData.pu16++; 405 410 uLinNumType = *uData.pu8++; 406 uReserved = *uData.pu8++; 407 cLinNums = *uData.pu16++; 408 uSeg2 = *uData.pu16++; 409 cbLinNames = *uData.pu32++; 411 uReserved = *uData.pu8++; K_NOREF(uReserved); 412 cLinNums = *uData.pu16++; K_NOREF(cLinNums); 413 uSeg2 = *uData.pu16++; K_NOREF(uSeg2); 414 cbLinNames = *uData.pu32++; K_NOREF(cbLinNames); 410 415 411 416 dprintf(("LINNUM32: uGrp=%#x uSeg=%#x uSeg2=%#x uLine=%#x (MBZ) uReserved=%#x\n", … … 414 419 cLinNums, cLinNums, cbLinNames, cbLinNames, uLinNumType, 415 420 uLinNumType < K_ELEMENTS(s_apsz) ? s_apsz[uLinNumType] : "??")); 421 416 422 if (uLine != 0) 417 423 return kDepErr(1, "%#07lx - Bad LINNUM32 record, line %#x (MBZ)\n", (long)((const KU8 *)pHdr - pbFile), uLine); … … 479 485 cbRecLeft -= 4+4+4; 480 486 481 iFirstCol = *uData.pu32++; 482 cCols = *uData.pu32++; 487 iFirstCol = *uData.pu32++; K_NOREF(iFirstCol); 488 cCols = *uData.pu32++; K_NOREF(cCols); 483 489 cLinFiles = *uData.pu32++; 484 490 dprintf(("%s table header: cLinFiles=%#" KX32_PRI " (%" KU32_PRI ") iFirstCol=%" KU32_PRI " cCols=%" KU32_PRI"\n", … … 1047 1053 else 1048 1054 { 1049 fprintf(stderr, "%s: syntax error: The '-%c' option takes a value.\n", chOpt);1055 fprintf(stderr, "%s: syntax error: The '-%c' option takes a value.\n", argv[0], chOpt); 1050 1056 return 2; 1051 1057 } … … 1131 1137 if (pszIgnoreExt) 1132 1138 { 1133 fprintf(stderr, "%s: syntax error: The '-e' option can only be used once!\n" );1139 fprintf(stderr, "%s: syntax error: The '-e' option can only be used once!\n", argv[0]); 1134 1140 return 2; 1135 1141 }
Note:
See TracChangeset
for help on using the changeset viewer.