(file) Return to cimmof.l CVS log (file) (dir) Up to [Pegasus] / pegasus / src / Pegasus / Compiler

Diff for /pegasus/src/Pegasus/Compiler/cimmof.l between version 1.22 and 1.23

version 1.22, 2012/12/05 21:10:53 version 1.23, 2013/03/13 16:57:35
Line 248 
Line 248 
  
 %% %%
  
   void cimmof_yy_less(int n) { yyless(n); }
   
   // Implemented to hide bison functions that are defined but not used
   // so compiler unused warnings can be enabled.  The functions defined in ths
   // dummy function are those current defined by Flex but never called by
   // Pegasus lex definitions. Since each compiler has different rules for
   // hiding unused functions, we implement each that we know.
   // CLANG can use the pragma below.
   // GCC hides the unused function through the recursive call
   // NOT tested with other compilers.
   #ifdef __clang__
   #pragma clang diagnostic push
   #pragma clang diagnostic ignored "-Wunused-function"
   #endif
   static void UNUSED_LEX_FUNCTIONS()
   {
      UNUSED_LEX_FUNCTIONS();    // call itself to avoid unused function warning
      yyunput(3, (char *)"");    // call unused lex functions
      yy_top_state();
   }
   #ifdef __clang__
   #pragma clang diagnostic pop
   #endif


Legend:
Removed from v.1.22  
changed lines
  Added in v.1.23

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2