VirtualBox

Changeset 63677 in vbox for trunk/src/VBox/Main


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/Main/src-server/linux
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • 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];
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