Re: C++ Warning for Base Class Overrides?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 9 August 2011 12:38, Jeffrey Walton wrote:
>
> I'm compiling with -Wall -Wextra on GCC. When I passed the dame code
> through ICC, a few functions were flagged as unintentional overrides.

Overrides?  Only a virtual function can be overridden.  If you mean
overloads, -Woverloaded-virtual will warn about virtual functions
which are hidden by functions with the same name in a derived class.
There's no warning for non-virtual functions which are hidden.


[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux