VirtualBox

Changeset 90249 in vbox


Ignore:
Timestamp:
Jul 20, 2021 7:59:02 AM (4 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
145788
Message:

Linux: fix build when -Wimplicit-fallthrough=5 is enabled, bugref:10066.

Compiler option -Wimplicit-fallthrough=5 was added to KBUILD_CFLAGS
in kernel 5.14. This commit replaces /* fall thru */ comment with
the macro RT_FALL_THRU() in a couple of remaining places, so the warning
can be suppressed.

Location:
trunk/src/VBox
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/HostDrivers/VBoxNetFlt/linux/VBoxNetFlt-linux.c

    r87785 r90249  
    734734        default:
    735735            AssertMsgFailed(("%u (%s)\n", pSG->GsoCtx.u8Type, PDMNetGsoTypeName((PDMNETWORKGSOTYPE)pSG->GsoCtx.u8Type) ));
    736             /* fall thru */
     736            RT_FALL_THRU();
    737737        case PDMNETWORKGSOTYPE_INVALID:
    738738            fGsoType = 0;
  • trunk/src/VBox/Runtime/r0drv/linux/memobj-r0drv-linux.c

    r87356 r90249  
    19581958        default:
    19591959            AssertMsgFailed(("%d\n", pMemLnx->Core.enmType));
    1960             /* fall thru */
     1960            RT_FALL_THROUGH();
    19611961
    19621962        case RTR0MEMOBJTYPE_RES_VIRT:
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