Re: final protected private symbol

"Stephen R. van den Berg" <[email protected]>
Newsgroups gmane.comp.lang.pike.user
Message-ID <[email protected]>
Per Hedbor () @ Pike (-) importm?te f?r mailinglistan wrote:
>Before there was really no difference except access rights, so the
>only use was to make the API "cleaner".

And in anticipation of better optimisers in the future.

After changing most protecteds to private, I get this:

/usr/local/pike/8.0.31/lib/modules/Sql.pmod/pgsql_util.pmod:363: Warning: range_error is private but not used anywhere.
/usr/local/pike/8.0.31/lib/modules/Sql.pmod/pgsql_util.pmod:363: Warning: range_error is private but not used anywhere.

Is there a way to suppress this warning message without generating any actual
code?

The range_error() method is being called by the inherited classes.  Seems like
this quite a common case, and thus its invocation cannot be detected by
the compiler.

Also, given the fact that despite the warnings, the driver seems to work
flawlessly, it is apparently a given that a member marked private
will override and be accessible to inherited classes.
-- 
Stephen.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.