mirror of
https://github.com/Ylianst/MeshAgent
synced 2026-01-05 18:13:38 +00:00
Fixed compiler warning on GCC related to duktape specific issue
This commit is contained in:
@@ -71,7 +71,14 @@ duk_ret_t ILibDuktape_Error(duk_context *ctx, char *format, ...)
|
||||
va_end(argptr);
|
||||
|
||||
duk_push_string(ctx, dest);
|
||||
#ifdef _POSIX
|
||||
#pragma GCC diagnostic push
|
||||
#pragma GCC diagnostic ignored "-Wunused-value"
|
||||
#endif
|
||||
duk_throw(ctx);
|
||||
#ifdef _POSIX
|
||||
#pragma GCC diagnostic pop
|
||||
#endif
|
||||
|
||||
return DUK_RET_ERROR;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user