Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Fix remaining compiler warning. #240

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

Merged
merged 17 commits into from
Aug 31, 2012
Merged

Fix remaining compiler warning. #240

merged 17 commits into from
Aug 31, 2012

Conversation

remicollet
Copy link
Collaborator

With this, redis build with -Wall option.

Please review 1defd42 (ce is never initialized, so I think redis_ce is the correct value)

Some are false positive, I could check the logic where compiler could not.

Some could introduce race condition (ex if callback_type is 1 or 2 by lack of luck...)

I know these are only warning... but I really like build without any warnings ;)

@remicollet
Copy link
Collaborator Author

Latest commit is a proposal for a test suite aware of API change between server version.

$ redis-cli -v
redis-cli 2.5.12
$ php TestRedis.php 
Note: these tests might take up to a minute. Don't worry :-)
..............................................................................
All tests passed.

If you think this is a nice solution which meet your need, I will work on adding more conditions to have a working test suite with older version (probably 2.4.10 which is current version in fedora 17 and EPEL)

@nicolasff
Copy link
Member

Thanks for fixing the test backtrace as well! All of this looks good.

nicolasff added a commit that referenced this pull request Aug 31, 2012
Fix remaining compiler warning.
@nicolasff nicolasff merged commit 28fe4c1 into phpredis:master Aug 31, 2012
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.

2 participants