VirtualBox

Changeset 108481 in vbox for trunk/src/VBox/Runtime/r3


Ignore:
Timestamp:
Mar 7, 2025 5:02:28 PM (7 weeks ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
167869
Message:

Some minor compile fixes when targetting Linux with clang, bugref:10874

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/r3/posix/dir-posix.cpp

    r106061 r108481  
    431431        {
    432432            struct dirent *pResult = NULL;
    433 #if RT_GNUC_PREREQ(4, 6)
     433#if RT_CLANG_PREREQ(3, 4) /* Needs to come first because clang also triggers on RT_GNUC_PREREQ() but doesn't work there. */
     434# pragma clang diagnostic push
     435# pragma clang diagnostic ignored "-Wdeprecated-declarations"
     436#elif RT_GNUC_PREREQ(4, 6)
    434437# pragma GCC diagnostic push
    435438# pragma GCC diagnostic ignored "-Wdeprecated-declarations"
    436439#endif
    437440            int rc = readdir_r(pDir->pDir, &pDir->Data, &pResult);
    438 #if RT_GNUC_PREREQ(4, 6)
     441#if RT_CLANG_PREREQ(3, 4)
     442# pragma clang diagnostic pop
     443#elif RT_GNUC_PREREQ(4, 6)
    439444# pragma GCC diagnostic pop
    440445#endif
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