api_generator: c++: remove warnings