mirror of
https://github.com/bytecodealliance/wasm-micro-runtime.git
synced 2025-05-14 05:31:13 +00:00
Fix potential warning of printf in main.c of posix and windows (#1440)
This commit is contained in:
parent
9f09e2661f
commit
c64186b704
|
@ -464,7 +464,8 @@ main(int argc, char *argv[])
|
||||||
else if (!strncmp(argv[0], "--version", 9)) {
|
else if (!strncmp(argv[0], "--version", 9)) {
|
||||||
uint32 major, minor, patch;
|
uint32 major, minor, patch;
|
||||||
wasm_runtime_get_version(&major, &minor, &patch);
|
wasm_runtime_get_version(&major, &minor, &patch);
|
||||||
printf("iwasm %u.%u.%u\n", major, minor, patch);
|
printf("iwasm %" PRIu32 ".%" PRIu32 ".%" PRIu32 "\n", major, minor,
|
||||||
|
patch);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|
|
@ -342,7 +342,8 @@ main(int argc, char *argv[])
|
||||||
else if (!strncmp(argv[0], "--version", 9)) {
|
else if (!strncmp(argv[0], "--version", 9)) {
|
||||||
uint32 major, minor, patch;
|
uint32 major, minor, patch;
|
||||||
wasm_runtime_get_version(&major, &minor, &patch);
|
wasm_runtime_get_version(&major, &minor, &patch);
|
||||||
printf("iwasm %u.%u.%u\n", major, minor, patch);
|
printf("iwasm %" PRIu32 ".%" PRIu32 ".%" PRIu32 "\n", major, minor,
|
||||||
|
patch);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in New Issue
Block a user