pike.git / src / language.yacc

version» Context lines:

pike.git/src/language.yacc:1148:       c->lex.current_line = save_line;    c->lex.current_file = save_file;    } else {    /* Prototype; don't warn about unused arguments. */    for (e = Pike_compiler->compiler_frame->current_number_of_locals; e--;) {    Pike_compiler->compiler_frame->variable[e].flags |= LOCAL_VAR_IS_USED;    }    if( Pike_compiler->compiler_frame->current_return_type->type == PIKE_T_AUTO )    yyerror("'auto' return type not allowed for prototypes."); +  if (Pike_compiler->compiler_pass == COMPILER_PASS_FIRST) {    for(e=0; e<$<number>8+$9; e++)    {    node *def = Pike_compiler->compiler_frame->variable[e].def;    if (def) {    low_yyreport(REPORT_WARNING, def->current_file, def->line_number,    parser_system_string, 0,    "Argument default values are not supported in prototypes.");    }    }    } -  +  }   #ifdef PIKE_DEBUG    if (Pike_compiler->compiler_frame != $6) {    Pike_fatal("Lost track of compiler_frame!\n"    " Got: %p (Expected: %p) Previous: %p\n",    Pike_compiler->compiler_frame, $6,    Pike_compiler->compiler_frame->previous);    }   #endif    pop_compiler_frame();    free_node($5);