Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Force 4.0 Reference - #pragma w_return warning suppression: function end missing return value http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 #pragma W_RETURN    Warning suppression: Function end missing return value
------------------------------------------------------------------------------
 Syntax
   #pragma W_RETURN+|-

 Arguments
   + and - controls if the option is on or off, respectively.

 Description
   The #pragma W_RETURN directive controls the generation of a
   compiler warning when a function does not return a value immediately
   before the endfunc statement.

 Example
   #define EXAMPLE_DIRECTIV
   #include example.hdr

   #pragma W_RETURN+
   
   func uint Test static
   param value uint uNum
   if uNum > 5
      return( 1 )
   else
      return( 0 )
   endif
   // #pragma W_RETURN- // uncomment this line to suppress the warning
   endproc
   
   proc Test_1445
   ? Test( 10 )
   endproc

   proc main
   Test_1445()
   endproc

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson