mirror of
https://github.com/fluencelabs/wasmer
synced 2025-04-25 02:12:13 +00:00
Fixed lint
This commit is contained in:
parent
77393c6ecc
commit
5e2488c1ea
@ -1058,10 +1058,13 @@ pub fn generate_emscripten_env(globals: &mut EmscriptenGlobals) -> ImportObject
|
||||
pub fn nullfunc(ctx: &mut Ctx, _x: u32) {
|
||||
use crate::process::abort_with_message;
|
||||
debug!("emscripten::nullfunc_i {}", _x);
|
||||
abort_with_message(ctx, "Invalid function pointer. Perhaps this is an invalid value \
|
||||
abort_with_message(
|
||||
ctx,
|
||||
"Invalid function pointer. Perhaps this is an invalid value \
|
||||
(e.g. caused by calling a virtual method on a NULL pointer)? Or calling a function with an \
|
||||
incorrect type, which will fail? (it is worth building your source files with -Werror (\
|
||||
warnings are errors), as warnings can indicate undefined behavior which can cause this)");
|
||||
warnings are errors), as warnings can indicate undefined behavior which can cause this)",
|
||||
);
|
||||
}
|
||||
|
||||
/// The current version of this crate
|
||||
|
Loading…
x
Reference in New Issue
Block a user