C++ Warning for Base Class Overrides?

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

 



Hi All,

I'm compiling with -Wall -Wextra on GCC. When I passed the dame code
through ICC, a few functions were flagged as unintentional overrides.
For example:

class Base
{
    void Foo(int);
}

class Derived
{
    void Foo(float);
}

What switch do I need for GCC to warn of the same? The switch I see
(-Woverride-init) does not appear to be what I need.

Jeff


[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