VirtualBox

Changeset 73502 in vbox for trunk/src/VBox/Runtime


Ignore:
Timestamp:
Aug 5, 2018 12:40:50 PM (7 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
124129
Message:

IPRT: GCC 8.2.0 fixes

Location:
trunk/src/VBox/Runtime
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/common/fs/RTFsCmdLs.cpp

    r73097 r73502  
    492492                case RTCMDLSTIME_ATIME: pfnCmp = pOpts->fGroupDirectoriesFirst ? rtCmdLsEntryCmpDirFirstATime : rtCmdLsEntryCmpATime; break;
    493493            }
     494            break;
    494495        case RTCMDLSSORT_VERSION:
    495496            pfnCmp = pOpts->fGroupDirectoriesFirst ? rtCmdLsEntryCmpDirFirstVersion       : rtCmdLsEntryCmpVersion;
  • trunk/src/VBox/Runtime/common/zip/xarvfs.cpp

    r73097 r73502  
    19411941                    Parser.read(pszOutput, cchToc, RTCString("xar-toc.xml"), *pDoc);
    19421942                }
    1943                 catch (xml::XmlError Err)
     1943                catch (xml::XmlError &Err)
    19441944                {
    19451945                    rc = VERR_XAR_TOC_XML_PARSE_ERROR;
  • trunk/src/VBox/Runtime/r3/xml.cpp

    r69434 r73502  
    19411941                pThis->m_pStrDst->append(pachBuf, (size_t)cbToWrite);
    19421942            }
    1943             catch (std::bad_alloc)
     1943            catch (std::bad_alloc &)
    19441944            {
    19451945                pThis->m_fOutOfMemory = true;
  • trunk/src/VBox/Runtime/testcase/tstRTHeapOffset.cpp

    r69111 r73502  
    101101    };
    102102    uint32_t i;
    103     RTHeapOffsetDump(Heap, (PFNRTHEAPOFFSETPRINTF)RTPrintf); /** @todo Add some detail info output with a signature identical to RTPrintf. */
     103    RTHeapOffsetDump(Heap, (PFNRTHEAPOFFSETPRINTF)(uintptr_t)RTPrintf); /** @todo Add some detail info output with a signature identical to RTPrintf. */
    104104    size_t cbBefore = RTHeapOffsetGetFreeSize(Heap);
    105105    static char const s_szFill[] = "01234567890abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";
     
    185185                      "Warning: Either we've split out an alignment chunk at the start, or we've got\n"
    186186                      "         an alloc/free accounting bug: cbBefore=%d cbAfter=%d\n", cbBefore, cbAfter);
    187         RTHeapOffsetDump(Heap, (PFNRTHEAPOFFSETPRINTF)RTPrintf);
     187        RTHeapOffsetDump(Heap, (PFNRTHEAPOFFSETPRINTF)(uintptr_t)RTPrintf);
    188188    }
    189189
  • trunk/src/VBox/Runtime/testcase/tstRTHeapSimple.cpp

    r69111 r73502  
    9898    };
    9999    unsigned i;
    100     RTHeapSimpleDump(Heap, (PFNRTHEAPSIMPLEPRINTF)RTPrintf); /** @todo Add some detail info output with a signature identical to RTPrintf. */
     100    RTHeapSimpleDump(Heap, (PFNRTHEAPSIMPLEPRINTF)(uintptr_t)RTPrintf); /** @todo Add some detail info output with a signature identical to RTPrintf. */
    101101    size_t cbBefore = RTHeapSimpleGetFreeSize(Heap);
    102102    static char szFill[] = "01234567890abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";
     
    181181                      "Warning: Either we've split out an alignment chunk at the start, or we've got\n"
    182182                      "         an alloc/free accounting bug: cbBefore=%d cbAfter=%d\n", cbBefore, cbAfter);
    183         RTHeapSimpleDump(Heap, (PFNRTHEAPSIMPLEPRINTF)RTPrintf);
     183        RTHeapSimpleDump(Heap, (PFNRTHEAPSIMPLEPRINTF)(uintptr_t)RTPrintf);
    184184    }
    185185
Note: See TracChangeset for help on using the changeset viewer.

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