1 2 3 4 5 6 7 8
class Foo { public: __attribute__((warn_unused_result)) int foo(int); }; __attribute__((warn_unused_result)) int foo(int);