VirtualBox

Ignore:
Timestamp:
Jul 22, 2016 2:51:49 PM (9 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
109001
Message:

IPRT: More MSC level 4 warning fixes.

Location:
trunk/src/VBox/Runtime/common/asn1
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/common/asn1/asn1-ut-objid.cpp

    r57358 r62448  
    430430        RTAsn1MemInitAllocation(&pThis->Allocation, pAllocator);
    431431        pThis->cComponents = pSrc->cComponents;
     432#if 0 /** @todo breaks with arrays of ObjIds or structs containing them. They get resized and repositioned in memory, thus invalidating the pointer. Add recall-pointers callback, or just waste memory? Or maybe make all arrays pointer-arrays? */
    432433        size_t cbLeft = sizeof(pThis->szObjId);
    433 #if 0 /** @todo breaks with arrays of ObjIds or structs containing them. They get resized and repositioned in memory, thus invalidating the pointer. Add recall-pointers callback, or just waste memory? Or maybe make all arrays pointer-arrays? */
    434434        if (pSrc->cComponents * sizeof(uint32_t) <= cbLeft)
    435435        {
  • trunk/src/VBox/Runtime/common/asn1/asn1-ut-string.cpp

    r57358 r62448  
    518518    while (i-- > 0)
    519519    {
    520         uint32_t cchMatch;
     520        uint32_t cchMatch = 0; /* (MSC maybe used uninitialized) */
    521521        PCRTISO2022MAP pMap = papMaps[i];
    522522        /** @todo skip non-Teletex codesets if we ever add more than we need for it. */
     
    530530            return cchMatch + 1;
    531531        }
    532         else if (!ppMapRet) /* ppMapRet is NULL if Gn. */
     532
     533        if (!ppMapRet) /* ppMapRet is NULL if Gn. */
    533534        {
    534535            uint32_t iGn;
     
    10331034    if (RT_SUCCESS(rc))
    10341035    {
    1035         size_t cchUtf8 = 0;
    10361036        for (;;)
    10371037        {
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