C/C++ Compiler (cl.hlp) (Table of Contents; Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
C4741
                                             Up Contents Index Back
────────────────────────────────────────────────────────────────────────────
 
     Compiler warning (level 1) C4741
 
     /Oq option ignored for __fastcall function 'function'
 
     The fastcall and saveregs calling conventions are not allowed
     for p-code functions. The function was compiled into native code.
 
     This warning can be avoided by using a different calling
     convention or by turning p-code generation off during the
     definition of fastcall and saveregs functions, as in:
 
          #pragma optimize( "q", off )    //Turn p-code on
          int __fastcall FastFunc( void )
                 {...};
          #pragma optimize( "q" )       //Return to default p-code mode
                                    -♦-