-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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 warnings about implicit cast #1064
base: master
Are you sure you want to change the base?
Conversation
Also added a few warning options to the build: -Wshadow -Wconversion -Wcast-qual -Wsign-conversion can also be added if the below pull request is approved: redis/hiredis#1064 Signed-off-by: Ted Lyngmo <[email protected]>
Also added a few warning options to the build: -Wshadow -Wconversion -Wcast-qual -Wsign-conversion can also be added if the below pull request is approved: redis/hiredis#1064 Signed-off-by: Ted Lyngmo <[email protected]>
I see it's failing in Ubuntu and CentOS, presumably because of the skipped tests? Any idea what could cause it to skip the tests?
When running |
Also added a few warning options to the build: -Wshadow -Wconversion -Wcast-qual -Wsign-conversion can also be added if the below pull request is approved: redis/hiredis#1064 Signed-off-by: Ted Lyngmo <[email protected]>
Also added a few warning options to the build: -Wshadow -Wconversion -Wcast-qual -Wsign-conversion can also be added if the below pull request is approved: redis/hiredis#1064 Signed-off-by: Ted Lyngmo <[email protected]>
Added a few explicit casts to sds.h: unsigned char flags = (unsigned char)s[-1]; Signed-off-by: Ted Lyngmo <[email protected]>
c1916b6
to
249092a
Compare
You might already have found the reason, but the command |
Oh, ok, so there is currently no way to get patches through this gate - or what can I do? |
I'm hesitant to merge changes to the How are you invoking the tests? Treating skip as failures is an option that you don't have to set. Edit: Ahh I see, they are even being skipped in GitHub CI. We recently switched to using the official Redis package so perhaps something has changed. I need to investigate why they're being skipped |
I totally understand that. If I manage to get a PR through in Redis itself, will that eventually end up in hiredis? If so, I may start there instead.
Great! Cheers! Oups, now the macOS test failed too. :-) |
Yes for sure
The problem is due to Redis 7.0.0 disabling the |
Added a few explicit casts:
unsigned char flags = (unsigned char)s[-1];
Signed-off-by: Ted Lyngmo [email protected]