pike.git / src / program.c

version» Context lines:

pike.git/src/program.c:6859:    } else if (c->lex.pragmas & ID_STRICT_TYPES) {    level = REPORT_WARNING;    }    if (level != REPORT_NOTICE) {    yytype_report(level, NULL, 0, lfun_type->u.type,    NULL, 0, type, 0,    "Type mismatch for callback function %S:", name);    }    }    c->lex.pragmas = orig_pragmas; +  +  /* NB: define_function() is called multiple times... */ +  if (((flags & (ID_PROTECTED|ID_PRIVATE)) != ID_PROTECTED) && func && +  !(orig_pragmas & ID_NO_DEPRECATION_WARNINGS) && +  !deprecated_typep(type)) { +  if (!(flags & (ID_PROTECTED|ID_PRIVATE))) { +  yywarning("Lfun %S is public.", name); +  } else { +  yywarning("Lfun %S is private.", name);    } -  +  } +  }    } else if (((name->len > 3) &&    (index_shared_string(name, 0) == '`') &&    (index_shared_string(name, 1) == '-') &&    (index_shared_string(name, 2) == '>')) ||    ((name->len > 1) &&    (index_shared_string(name, 0) == '`') &&    wide_isidchar(index_shared_string(name, 1)))) {    /* Getter setter. */    struct pike_string *symbol = NULL;    struct pike_type *symbol_type = NULL;