Skip to content

Conversation

@JamesMenetrey
Copy link
Contributor

Dear WAMR developers,

While compiling the file wasi_socket_ext.c with pedantic options (typically -Wimplicit-int-conversion, -Wmissing-prototypes), some warnings are raised.

This PR addresses those warnings by adding missing static statements before functions and explicitly casting a narrowing conversion.

Cheers

@wenyongh wenyongh merged commit 5b10d4e into bytecodealliance:main Sep 29, 2022
wenyongh added a commit to wenyongh/wasm-micro-runtime that referenced this pull request Sep 29, 2022
socket: Explicit narrowing type cast and add missing static keywords (bytecodealliance#1539)
vickiegpt pushed a commit to vickiegpt/wamr-aot-gc-checkpoint-restore that referenced this pull request May 27, 2024
…ytecodealliance#1539)

While compiling the file wasi_socket_ext.c with pedantic options (typically
`-Wimplicit-int-conversion` and `-Wmissing-prototypes`), some warnings are raised.

This PR addresses those warnings by adding missing static statements before
functions and explicitly casting a narrowing conversion.

And fix the error handling after calling getpeername.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants