VirtualBox

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


Ignore:
Timestamp:
May 10, 2023 4:14:23 PM (19 months ago)
Author:
vboxsync
Message:

IPRT: Clang 13 fixes (warnings as errors).

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

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/common/vfs/vfsstddir.cpp

    r98103 r99730  
    236236        fMode |= ~fMask & ObjInfo.Attr.fMode;
    237237    }
    238     //RTPathSetMode
    239     //return RTFileSetMode(pThis->hDir, fMode);
     238#if 0
     239    RTPathSetMode
     240    return RTFileSetMode(pThis->hDir, fMode);
     241#else
     242    RT_NOREF(fMode);
    240243    return VERR_NOT_IMPLEMENTED;
     244#endif
    241245}
    242246
  • trunk/src/VBox/Runtime/r3/xml.cpp

    r98103 r99730  
    893893}
    894894
    895 
    896895const ElementNode *ElementNode::findChildElementP(const char *pcszPath, const char *pcszNamespace /*= NULL*/) const
    897896{
    898     size_t cchThis = strchr(pcszPath, '/') - pcszPath;
    899     if (cchThis == (size_t)((const char *)0 - pcszPath))
     897    const char *pszElm   = strchr(pcszPath, '/');
     898    size_t const cchThis = pszElm ? pszElm - pcszPath : 0;
     899    if (!cchThis)
    900900        return findChildElementNS(pcszNamespace, pcszPath);
    901901
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