I generally enable warnings_as_errors
in order to have the compiler fail hard in situations like invoking non-existing remote functions.
This worked well, until I started using @deprecated
. As far as I see it, I now have to choose between the following two:
- Keep warnings as errors, and accept that
@deprecated
will cause compilation errors. - Treat warnings as warnings, meaning that
@deprecated
will only be a warning. But so will invocations of non-existing functions.
Is there a middle-ground I am missing? Where I can have warnings for deprecations, but errors for invoking non-existing remote functions.