-
Notifications
You must be signed in to change notification settings - Fork 68
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
Remove warnings c compiler #789
Remove warnings c compiler #789
Conversation
return ((isBytes(socketOop)) | ||
&& ((byteSizeOf(socketOop)) == (sizeof(SQSocket))) | ||
? ((SocketPtr) (firstIndexableField(socketOop))) | ||
: (primitiveFailFor(PrimErrBadArgument), | ||
null)); | ||
if ((isBytes(socketOop)) && ((byteSizeOf(socketOop)) == (sizeof(SQSocket)))) { | ||
return (SocketPtr) (firstIndexableField(socketOop)); | ||
} | ||
primitiveFailFor(PrimErrBadArgument); | ||
return null; |
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.
Why would this rewrite remove the warning? do you know?
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.
Because there is not the expression with the complex type I guess (split into many statements)
@@ -14736,6 +14736,7 @@ StackInterpreter >> stackPointerIndexForFrame: theFP [ | |||
<var: #theFP type: #'char *'> | |||
<var: #thePage type: #'StackPage *'> | |||
<var: #theSP type: #'char *'> | |||
<returnTypeC: #sqInt> |
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.
Oh yes :)
Is this a problem with the type inferencer? Something worth improving there as a separate issue?
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.
It's not just the type inferer, the problem is to have char* types in pointers to the stack (the type inference is doing good it's work).
I already opened an issue for that.
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.
LGTM!
Bye flags for warnings:
-Wno-conditional-type-mismatch
-Wno-incompatible-pointer-types
And fixing other warnings from C compiler