VirtualBox

Changeset 78051 in vbox for trunk/include/iprt


Ignore:
Timestamp:
Apr 9, 2019 10:08:39 AM (6 years ago)
Author:
vboxsync
Message:

iprt/path.h: Use RT_FLEXIBLE_ARRAY in RTPATHPARSED and RTPATHSPLIT to make newer GCC versions less cranky. bugref:9172

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/iprt/path.h

    r78048 r78051  
    715715        /** The length of the component. */
    716716        uint16_t    cch;
    717     } aComps[1];
     717    } aComps[RT_FLEXIBLE_ARRAY];
    718718} RTPATHPARSED;
    719719/** Pointer to to a parsed path result. */
     
    798798    const char *pszSuffix;
    799799    /** Array of component strings (variable size). */
    800     char       *apszComps[1];
     800    char       *apszComps[RT_FLEXIBLE_ARRAY];
    801801} RTPATHSPLIT;
    802802/** Pointer to a split path buffer. */
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