Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Is there a GCC extension for implict return values?
- class SomeClass {
- public:
- static int AdjustValue(float input);
- static int DoSomethingWithAdjustedValue(int adjustedInput);
- static int DoSomethingWithNormalValue(float input) {
- DoSomethingWithAdjustedValue(AdjustValue(input);}
- };
- > g++ xa1.cpp -Wall
- xa1.cpp: In static member function ‘static int SomeClass::DoSomethingWithNormalValue(float)’:
- xa1.cpp:8: warning: no return statement in function returning non-void
- xa1.cpp:8: warning: control reaches end of non-void function
Add Comment
Please, Sign In to add comment