VirtualBox

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.

File:
1 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;
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