VirtualBox

Changeset 3064 in kBuild


Ignore:
Timestamp:
Sep 30, 2017 11:38:48 AM (7 years ago)
Author:
bird
Message:

kDepObj: warnings

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/kmk/kmkbuiltin/kDepObj.c

    r2955 r3064  
    5353# define dprintf(a)             printf a
    5454# define dump(pb, cb, offBase)  depHexDump(pb,cb,offBase)
     55# define WITH_DPRINTF
    5556#else
    5657# define dprintf(a)             do {} while (0)
    5758# define dump(pb, cb, offBase)  do {} while (0)
     59# undef  WITH_DPRINTF
    5860#endif
    5961
     
    387389                    if (uSeg == KU16_MAX)
    388390                        return kDepErr(1, "%#07lx - Bad LINNUM32 record\n", (long)((const KU8 *)pHdr - pbFile));
     391                    K_NOREF(uGrp);
    389392
    390393                    if (uLinNumType == KU8_MAX)
    391394                    {
     395#ifdef WITH_DPRINTF
    392396                        static const char * const s_apsz[5] =
    393397                        {
    394398                            "source file", "listing file", "source & listing file", "file names table", "path table"
    395399                        };
     400#endif
    396401                        KU16 uLine;
    397402                        KU8  uReserved;
     
    404409                        uLine       = *uData.pu16++;
    405410                        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);
    410415
    411416                        dprintf(("LINNUM32: uGrp=%#x uSeg=%#x uSeg2=%#x uLine=%#x (MBZ) uReserved=%#x\n",
     
    414419                                 cLinNums, cLinNums, cbLinNames, cbLinNames, uLinNumType,
    415420                                 uLinNumType < K_ELEMENTS(s_apsz) ? s_apsz[uLinNumType] : "??"));
     421
    416422                        if (uLine != 0)
    417423                            return kDepErr(1, "%#07lx - Bad LINNUM32 record, line %#x (MBZ)\n", (long)((const KU8 *)pHdr - pbFile), uLine);
     
    479485                            cbRecLeft -= 4+4+4;
    480486
    481                             iFirstCol = *uData.pu32++;
    482                             cCols     = *uData.pu32++;
     487                            iFirstCol = *uData.pu32++;  K_NOREF(iFirstCol);
     488                            cCols     = *uData.pu32++;  K_NOREF(cCols);
    483489                            cLinFiles = *uData.pu32++;
    484490                            dprintf(("%s table header: cLinFiles=%#" KX32_PRI " (%" KU32_PRI ") iFirstCol=%" KU32_PRI " cCols=%" KU32_PRI"\n",
     
    10471053                    else
    10481054                    {
    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);
    10501056                        return 2;
    10511057                    }
     
    11311137                    if (pszIgnoreExt)
    11321138                    {
    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]);
    11341140                        return 2;
    11351141                    }
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette