VirtualBox

Ignore:
Timestamp:
Jun 9, 2011 1:46:15 PM (14 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
72186
Message:

OpenGL/error/error.py: moved ERROR_UNUSED to the top of the function to prevent dozens of warnigs about dead code in Fortify

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/GuestHost/OpenGL/error/error.py

    r15532 r37392  
    3333        print '\nstatic %s ERROR_APIENTRY error%s( %s )' % (return_type, func_name, apiutil.MakeDeclarationString(params ))
    3434        print '{'
    35         print '\tcrError( "ERROR SPU: Unsupported function gl%s called!" );' % func_name
    3635        # Handle the void parameter list
    3736        for (name, type, vecSize) in params:
    3837                print '\tERROR_UNUSED(%s);' % name
    39 
     38        print '\tcrError( "ERROR SPU: Unsupported function gl%s called!" );' % func_name
    4039        if return_type != "void":
    4140                print '\treturn (%s)0;' % return_type
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