VirtualBox

Changeset 63677 in vbox


Ignore:
Timestamp:
Sep 1, 2016 9:03:39 AM (8 years ago)
Author:
vboxsync
Message:

shut up gcc for complaining about readdir_r() with glibc 2.24+

Location:
trunk/src/VBox
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/HostDrivers/Support/SUPR3HardenedVerify.cpp

    r62877 r63677  
    15621562        struct dirent Entry;
    15631563        struct dirent *pEntry;
     1564#if RT_GNUC_PREREQ(4, 6)
     1565# pragma GCC diagnostic push
     1566# pragma GCC diagnostic ignored "-Wdeprecated-declarations"
     1567#endif
    15641568        int iErr = readdir_r(pDir, &Entry, &pEntry);
     1569#if RT_GNUC_PREREQ(4, 6)
     1570# pragma GCC diagnostic pop
     1571#endif
    15651572        if (iErr)
    15661573        {
  • trunk/src/VBox/Main/src-server/linux/HostHardwareLinux.cpp

    r62485 r63677  
    831831    int err;
    832832
     833#if RT_GNUC_PREREQ(4, 6)
     834# pragma GCC diagnostic push
     835# pragma GCC diagnostic ignored "-Wdeprecated-declarations"
     836#endif
    833837    for (err = readdir_r(pDir, &entry, &pResult); pResult;
    834838         err = readdir_r(pDir, &entry, &pResult))
     839#if RT_GNUC_PREREQ(4, 6)
     840# pragma GCC diagnostic pop
     841#endif
    835842    {
    836843        /* We (implicitly) require that PATH_MAX be defined */
  • trunk/src/VBox/Main/src-server/linux/USBGetDevices.cpp

    r63378 r63677  
    10011001    int err, rc;
    10021002
     1003#if RT_GNUC_PREREQ(4, 6)
     1004# pragma GCC diagnostic push
     1005# pragma GCC diagnostic ignored "-Wdeprecated-declarations"
     1006#endif
    10031007    for (err = readdir_r(pDir, &entry, &pResult); pResult;
    10041008         err = readdir_r(pDir, &entry, &pResult))
     1009#if RT_GNUC_PREREQ(4, 6)
     1010# pragma GCC diagnostic pop
     1011#endif
    10051012    {
    10061013        char szPath[RTPATH_MAX + 1];
  • trunk/src/VBox/Runtime/r3/posix/dir-posix.cpp

    r62564 r63677  
    300300        {
    301301            struct dirent *pResult = NULL;
     302#if RT_GNUC_PREREQ(4, 6)
     303# pragma GCC diagnostic push
     304# pragma GCC diagnostic ignored "-Wdeprecated-declarations"
     305#endif
    302306            int rc = readdir_r(pDir->pDir, &pDir->Data, &pResult);
     307#if RT_GNUC_PREREQ(4, 6)
     308# pragma GCC diagnostic pop
     309#endif
    303310            if (rc)
    304311            {
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