Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix build errors in server.c #170

Merged
merged 1 commit into from
Jan 28, 2025
Merged

Fix build errors in server.c #170

merged 1 commit into from
Jan 28, 2025

Conversation

embhorn
Copy link
Member

@embhorn embhorn commented Jan 28, 2025

Fixes build errors when wolfSSL is configured with --enable-all

src/server/server.c: In function ‘server_test’:
src/server/server.c:2229:28: error: returning ‘int’ from a function with return type ‘THREAD_RETURN’ {aka ‘void *’} makes pointer from integer without a cast [-Werror=int-conversion]
 2229 |                     return BAD_FUNC_ARG;
      |                            ^~~~~~~~~~~~
src/server/server.c:3430:9: error: this ‘if’ clause does not guard... [-Werror=misleading-indentation]
 3430 |         if (ret != WOLFSSL_SUCCESS)
      |         ^~
src/server/server.c:3432:13: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’
 3432 |             ((func_args*)args)->return_code = ret;
      |             ^

@embhorn embhorn requested a review from wolfSSL-Bot January 28, 2025 14:56
@embhorn embhorn assigned embhorn and wolfSSL-Bot and unassigned embhorn Jan 28, 2025
@embhorn embhorn mentioned this pull request Jan 28, 2025
@JacobBarthelmeh JacobBarthelmeh merged commit 05d954a into wolfSSL:main Jan 28, 2025
14 of 15 checks passed
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