Hi, ALL,
Consider this code snippet:

class A
     int GetA() { return m_a; };
     double GetB() { return m_b; };
     int m_a;
     double m_b;

int main()
     A a;
     int diff = a.GetA() - a.GetB();
This code compiles fine using MSVC 2010, but do not compile (five warning) on gcc-4.2 (Mac OSX 10.6 Snow Leopard, XCode 4).

What would be the best way to fix the code to not to produce the warning on gcc and still compile as appropriate on MSVC?

Thank you.