-
Notifications
You must be signed in to change notification settings - Fork 84
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
objc: fix envoy_observer native_init #337
Conversation
This was being instantiated in the wrong order, and warning at compile time that the wrong closure types were being assigned to `envoy_observer`: ``` library/objective-c/EnvoyEngine.m:228:33: warning: incompatible pointer types initializing 'envoy_on_error_f' (aka 'void (*)(envoy_error, void *)') with an expression of type 'void (void *)' [-Wincompatible-pointer-types] ios_on_complete, ios_on_error, context}; ^~~~~~~~~~~~~~~ library/objective-c/EnvoyEngine.m:228:50: warning: incompatible pointer types initializing 'envoy_on_complete_f' (aka 'void (*)(void *)') with an expression of type 'void (envoy_error, void *)' [-Wincompatible-pointer-types] ios_on_complete, ios_on_error, context}; ^~~~~~~~~~~~ ``` Signed-off-by: Michael Rebello <[email protected]>
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.
You should turn on warnings as errors on CI. You can with --copt=-Werror
. After that you might want to tune and enable more warnings as well. If this is too much because of envoy you could also enable it just for this project's cc_library targets.
Signed-off-by: Michael Rebello <[email protected]>
@keith that's a great callout. Tried running locally with warnings as errors, but as you mentioned it fails with core Envoy. What would be the best way to run this only on specific Envoy Mobile |
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.
Filed #339 |
This was being instantiated in the wrong order, and warning at compile time that the wrong closure types were being assigned to
envoy_observer
:Signed-off-by: Michael Rebello [email protected]