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

Build warnings in swoole.c #19

Merged
merged 18 commits into from
Dec 26, 2013
Merged

Build warnings in swoole.c #19

merged 18 commits into from
Dec 26, 2013

Conversation

remicollet
Copy link
Contributor

As previous, some are only cosmetic.

The missing swProcessPool_dispatch proto hide a bad call.

Please review 6a68dfb and f24c413

…o_print_table_start' [-Wimplicit-function-declaration]
…arg in call (detected thanks to added proto)
…his function [-Wmaybe-uninitialized] - Please review Logic
…makes integer from pointer without a cast - Please check
…nt', but argument 5 has type 'long int' [-Wformat=]
… from incompatible pointer type [enabled by default]

=> expected 'void * (*)(void *)

Please review this change.

From man:
       * It calls pthread_exit(3), specifying an exit status value that is available to another thread in the same process that calls pthread_join(3).
       * It returns from start_routine().  This is equivalent to calling pthread_exit(3) with the value supplied in the return statement.

So the return NULL, seems enough.
As the serv option is not used, having void * seems ok.
@remicollet
Copy link
Contributor Author

This is my last one.

With all this changes, the build is "warning free" (Using -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector )

Some commit need to be checked.

matyhtf added a commit that referenced this pull request Dec 26, 2013
@matyhtf matyhtf merged commit caaf38a into swoole:master Dec 26, 2013
@matyhtf
Copy link
Member

matyhtf commented Dec 26, 2013

Good..

@SETSESSION SETSESSION mentioned this pull request May 9, 2017
@copyrenzhe copyrenzhe mentioned this pull request Nov 27, 2017
@jianwubayiba jianwubayiba mentioned this pull request May 5, 2018
@117311730 117311730 mentioned this pull request Jun 26, 2018
@bnubobby bnubobby mentioned this pull request Jul 2, 2018
@shehuaqigai shehuaqigai mentioned this pull request Sep 19, 2018
@JesseWjs JesseWjs mentioned this pull request Oct 10, 2018
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.

None yet

2 participants