VirtualBox

Ignore:
Timestamp:
Oct 5, 2017 2:20:22 PM (7 years ago)
Author:
vboxsync
Message:

Fix switch statement fall-through warnings with gcc 7.2.
bugref:8192: gcc warnings

gcc 7.1 and later add a switch statement fall-through warning level, which
-Wall sets to level 3. At this level, fall-throughs have to have at least
a comment following particular requirements (see gcc manual). This change
fixes a few places in the code to meet these requirements. Currently this
warning prevents building with kObjCache enabled, as the compiler checks
the comments in the source, which are stripped out by the object cache.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Graphics/DevVGA-SVGA3d-info.cpp

    r65381 r68994  
    12701270                    break;
    12711271                default:
    1272                     AssertFailed();
     1272                    AssertFailed();  /* Fall through */
    12731273                case 'b': //SVGA3dBlendOp
    12741274                case 'e': //SVGA3dBlendEquation
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