Skip to content
  • Ryan Lopopolo's avatar
    7fe6f397
    Fix incorrect prototype on declaration of mrb_protect_atexit · 7fe6f397
    Ryan Lopopolo authored
    `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.
    7fe6f397
    Fix incorrect prototype on declaration of mrb_protect_atexit
    Ryan Lopopolo authored
    `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.
Loading