Fix unused parameter related build issues on Windows (#3003)
MSVC doen't support __attribute__((unused)), we should use JERRY_UNUSED macro instead. Additionally removed the internal jrt.h include from tests/unit-core/test-common.h which was layering violation. It made JERRY_ASSERT unavailable, we should use TEST_ASSERT. JerryScript-DCO-1.0-Signed-off-by: Csaba Osztrogonác oszi@inf.u-szeged.hu
This commit is contained in:
committed by
Robert Fancsik
parent
27da5a538c
commit
051febfed7
+3
-1
@@ -310,8 +310,10 @@ wait_for_source_callback (const jerry_char_t *resource_name_p, /**< resource nam
|
||||
size_t resource_name_size, /**< size of resource name */
|
||||
const jerry_char_t *source_p, /**< source code */
|
||||
size_t source_size, /**< source code size */
|
||||
void *user_p __attribute__((unused))) /**< user pointer */
|
||||
void *user_p /**< user pointer */)
|
||||
{
|
||||
(void) user_p;
|
||||
|
||||
jerry_value_t ret_val = jerry_parse (resource_name_p,
|
||||
resource_name_size,
|
||||
source_p,
|
||||
|
||||
Reference in New Issue
Block a user