mirror of
https://github.com/bytecodealliance/wasm-micro-runtime.git
synced 2024-11-26 15:32:05 +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)) {
|
||||
uint32 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;
|
||||
}
|
||||
else
|
||||
|
|
|
@ -342,7 +342,8 @@ main(int argc, char *argv[])
|
|||
else if (!strncmp(argv[0], "--version", 9)) {
|
||||
uint32 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;
|
||||
}
|
||||
else
|
||||
|
|
Loading…
Reference in New Issue
Block a user