diff options
| author | Ryan Lopopolo <[email protected]> | 2021-04-13 07:57:09 -0700 |
|---|---|---|
| committer | Ryan Lopopolo <[email protected]> | 2021-04-13 07:57:09 -0700 |
| commit | 7fe6f3976eca19a86fe533deb4c60b31cd80a236 (patch) | |
| tree | 9d407e7ce6c971fd6798cef7a20682970ce4ddf5 /src/state.c | |
| parent | 1a3846b49256cf98574a454ba43ea2587db03be2 (diff) | |
| download | mruby-7fe6f3976eca19a86fe533deb4c60b31cd80a236.tar.gz mruby-7fe6f3976eca19a86fe533deb4c60b31cd80a236.zip | |
Fix incorrect prototype on declaration of mrb_protect_atexit
`state.c` makes a prototype declaration for the private
`mrb_protect_atexit` which is defined in `error.c`. `error.c` defines
this function with a void return type, but `state.c` defines the
prototype with an `int` return type.
This mismatch prevents mruby from compiling on stricter compilers like
emscripten.
Diffstat (limited to 'src/state.c')
| -rw-r--r-- | src/state.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/state.c b/src/state.c index 1b50eec34..4dafc964a 100644 --- a/src/state.c +++ b/src/state.c @@ -183,7 +183,7 @@ mrb_free_context(mrb_state *mrb, struct mrb_context *c) mrb_free(mrb, c); } -int mrb_protect_atexit(mrb_state *mrb); +void mrb_protect_atexit(mrb_state *mrb); MRB_API void mrb_close(mrb_state *mrb) |
