VirtualBox

Ignore:
Timestamp:
Jun 7, 2023 8:05:13 PM (20 months ago)
Author:
vboxsync
Message:

*: Fix build issues when setting VBOX_WITH_WARNINGS_AS_ERRORS=1 on darwin.arm64 and make it a default, bugref:10469

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/ImageMounter/vboximg-mount/SelfSizingTable.h

    r98103 r100108  
    270270    {
    271271        uint8_t colWidth = pColDesc->cbWidestDataInCol;
    272         char colHdr[colWidth + 1], *pszColHdr = (char *)colHdr;
     272        char *pszColHdr = new char[colWidth + 1];
    273273        switch (pColDesc->alignment)
    274274        {
     
    288288        RTPrintf(ANSI_RESET);
    289289        pColDesc = pColDesc->next;
     290        delete[] pszColHdr;
    290291    }
    291292    RTPrintf("\n");
     
    300301        {   pColDesc = pColData->pColDesc;
    301302            uint8_t colWidth = pColDesc->cbWidestDataInCol;
    302             char aCell[colWidth + 1];
     303            char *aCell = new char[colWidth + 1];
    303304            switch (pColDesc->alignment)
    304305            {
     
    316317            RTPrintf("%s%*s", aCell, cbPad, " ");
    317318            pColData = pColData->next;
     319            delete[] aCell;
    318320        }
    319321        RTPrintf("\n");
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