summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2012-06-14 06:55:02 -0700
committerYukihiro "Matz" Matsumoto <[email protected]>2012-06-14 06:55:02 -0700
commite2796b47dc28e3e861b278db8413a2105ed14c28 (patch)
treef31c25f7404da01acfab567034a3c5a3e2036e38 /src
parent73d7000b8f5c3f7d2cb12e03b0a431ec3636fe21 (diff)
parent3fb9408669ac44f1e366d764262f65c452d4d907 (diff)
downloadmruby-e2796b47dc28e3e861b278db8413a2105ed14c28.tar.gz
mruby-e2796b47dc28e3e861b278db8413a2105ed14c28.zip
Merge pull request #281 from monaka/pr-remove-redundant-declaration-warnings
Fix redundant declraration warnings by gcc.
Diffstat (limited to 'src')
-rw-r--r--src/cdump.c1
-rw-r--r--src/error.h2
2 files changed, 0 insertions, 3 deletions
diff --git a/src/cdump.c b/src/cdump.c
index f9525d042..4f680d4f3 100644
--- a/src/cdump.c
+++ b/src/cdump.c
@@ -195,7 +195,6 @@ mrb_cdump_irep(mrb_state *mrb, int n, FILE *f,const char *initname)
SOURCE_CODE0(" mrb->irep_len = idx;");
SOURCE_CODE0("");
- SOURCE_CODE0(" extern mrb_value mrb_top_self(mrb_state *mrb);");
SOURCE_CODE0(" mrb_run(mrb, mrb_proc_new(mrb, mrb->irep[n]), mrb_top_self(mrb));");
SOURCE_CODE0("}");
diff --git a/src/error.h b/src/error.h
index babf93a7d..8a86e7d3d 100644
--- a/src/error.h
+++ b/src/error.h
@@ -12,13 +12,11 @@ struct RException {
};
void mrb_sys_fail(mrb_state *mrb, const char *mesg);
-void mrb_exc_raise(mrb_state *mrb, mrb_value mesg);
void mrb_bug_errno(const char*, int);
int sysexit_status(mrb_state *mrb, mrb_value err);
void error_pos(void);
mrb_value mrb_exc_new3(mrb_state *mrb, struct RClass* c, mrb_value str);
mrb_value make_exception(mrb_state *mrb, int argc, mrb_value *argv, int isstr);
-mrb_value mrb_exc_new(mrb_state *mrb, struct RClass *c, const char *ptr, long len);
mrb_value mrb_make_exception(mrb_state *mrb, int argc, mrb_value *argv);
mrb_value mrb_sprintf(mrb_state *mrb, const char *fmt, ...);
void mrb_name_error(mrb_state *mrb, mrb_sym id, const char *fmt, ...);