-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
[gardena] Fix compiler warnings #12947
Conversation
Signed-off-by: Andrew Fiddian-Green <software@whitebear.ch>
@andrewfg - I see only one compiler warning which hasn't been fixed by this PR?
Perhaps you can add some details as there seem to be a mismatch between PR title and actual result. |
@jlaur that is correct. I would have fixed that too, but I don't know how. (It concerns a nullable furld in a dto, so it should already be implicitly nullable and nulled..) |
OK, so now I follow. I missed that the lines you changed actually triggered some SAT warnings. I was looking for compiler warnings and only found the one that wasn't fixed. Will perform review now - less confused. :-) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks.
@jlaur your own PR today with an interesting null annotation made me think more about this case: The binding code is definitely an edge case where null annotations and null checking falls over, so I would not change the code in any way. However I could eliminate the compiler warning by adding a |
@andrewfg - it's a tricky case. Type T can either be nullable or non-null. If we explicitly annotate it as nullable, we get into null constraint mismatch troubles. But actually it would make sense to annotate it as non-null. Now we have another problem, since I have created #12957 as a proposed solution, where |
Signed-off-by: Andrew Fiddian-Green <software@whitebear.ch>
Signed-off-by: Andrew Fiddian-Green <software@whitebear.ch>
Signed-off-by: Andrew Fiddian-Green <software@whitebear.ch> Signed-off-by: Andras Uhrin <andras.uhrin@gmail.com>
Signed-off-by: Andrew Fiddian-Green <software@whitebear.ch>
Signed-off-by: Andrew Fiddian-Green <software@whitebear.ch>
Fixes #12898
Signed-off-by: Andrew Fiddian-Green software@whitebear.ch