Fix warnings

extensions
Volodymyr Shymanskyy 5 years ago
parent 40df4b0cca
commit 7234f0f9f8

@ -138,7 +138,7 @@ d_m3ErrorConst (tooManyMemorySections, "Wasm MVP can only define one me
// link errors
d_m3ErrorConst (moduleAlreadyLinked, "attempting to bind module to multiple runtimes")
d_m3ErrorConst (functionLookupFailed, "function lookup failed")
d_m3ErrorConst (functionImportMissing, "missing imported function");
d_m3ErrorConst (functionImportMissing, "missing imported function")
// compilation errors
d_m3ErrorConst (noCompiler, "no compiler found for opcode")

@ -10,14 +10,14 @@
#include "m3_core.h"
# if __cplusplus
# if defined(__cplusplus)
extern "C" {
# endif
M3Result m3_LinkLibC (IM3Module io_module);
M3Result m3_LinkSpecTest (IM3Module io_module);
# if __cplusplus
# if defined(__cplusplus)
}
# endif

@ -10,13 +10,13 @@
#include "m3_core.h"
# if __cplusplus
# if defined(__cplusplus)
extern "C" {
# endif
M3Result m3_LinkWASI (IM3Module io_module);
# if __cplusplus
#if defined(__cplusplus)
}
# endif

@ -54,6 +54,10 @@
# define d_m3FixedHeapAlign 16
# endif
# ifndef d_m3EnableOptimizations
# define d_m3EnableOptimizations 0
# endif
// logging ---------------------------------------------------------------------------
# define d_m3EnableOpProfiling 0

@ -402,8 +402,6 @@ void log_opcode (IM3Compilation o, u8 i_opcode)
o->block.depth++;
}
u16 GetMaxExecSlot (IM3Compilation o);
void emit_stack_dump (IM3Compilation o)
{
@ -423,7 +421,7 @@ void emit_stack_dump (IM3Compilation o)
void log_emit (IM3Compilation o, IM3Operation i_operation)
{
# if DEBUG
# ifdef DEBUG
OpInfo i = find_operation_info (i_operation);
if (i.info)

Loading…
Cancel
Save