Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

make compile wo/ warnings on osx #1149

Merged
merged 1 commit into from Aug 19, 2020

Conversation

Karsten1987
Copy link

  • rclcpp::executors::FutureReturnCode is deprecated

  • _sdf->GetElement("deadline")->Get<size_t>(); lead to compiler errors, replaced it with a more explicit uint64_t.

Verbose stderr output
In file included from /Users/karsten/workspace/ros2/ros2_control_ws/src/gazebo_ros_pkgs/gazebo_ros/src/qos.cpp:15:
In file included from /Users/karsten/workspace/ros2/ros2_control_ws/src/gazebo_ros_pkgs/gazebo_ros/include/gazebo_ros/qos.hpp:18:
In file included from /usr/local/Cellar/sdformat9/9.3.0~pre1/include/sdformat-9.3/sdf/sdf.hh:2:
In file included from /usr/local/Cellar/sdformat9/9.3.0~pre1/include/sdformat-9.3/sdf/Actor.hh:20:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/memory:663:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/tuple:1012:5: error: static_assert failed "type not found in type list"
    static_assert(value != __not_found, "type not found in type list" );
/Users/karsten/workspace/ros2/ros2_control_ws/src/gazebo_ros_pkgs/gazebo_ros/src/qos.cpp:154:48: note: in instantiation of function template specialization 'sdf::v9::Element::Get<unsigned long>' requested here
        qos_overrides.depth = history_element->Get<size_t>("depth");
  • Gazebo11 has a handful of warnings with inconsistent override function declarations. Warning is explicitly marked as ignored to guarantee a compilation even with -Werror.
Verbose stderr output
--- stderr: gazebo_ros
In file included from /Users/karsten/workspace/ros2/ros2_control_ws/src/gazebo_ros_pkgs/gazebo_ros/test/test_utils.cpp:17:
In file included from /usr/local/Cellar/gazebo11/11.1.0/include/gazebo-11/gazebo/sensors/sensors.hh:13:
/usr/local/Cellar/gazebo11/11.1.0/include/gazebo-11/gazebo/sensors/MultiCameraSensor.hh:53:28: error: 'Load' overrides a member function but is not marked 'override' [-Werror,-Winconsistent-missing-override]
      public: virtual void Load(const std::string &_worldName);
                           ^
/usr/local/Cellar/gazebo11/11.1.0/include/gazebo-11/gazebo/sensors/Sensor.hh:69:28: note: overridden virtual function is here
      public: virtual void Load(const std::string &_worldName);
                           ^
In file included from /Users/karsten/workspace/ros2/ros2_control_ws/src/gazebo_ros_pkgs/gazebo_ros/test/test_utils.cpp:17:
In file included from /usr/local/Cellar/gazebo11/11.1.0/include/gazebo-11/gazebo/sensors/sensors.hh:13:
/usr/local/Cellar/gazebo11/11.1.0/include/gazebo-11/gazebo/sensors/MultiCameraSensor.hh:56:28: error: 'Init' overrides a member function but is not marked 'override' [-Werror,-Winconsistent-missing-override]
      public: virtual void Init();
                           ^
/usr/local/Cellar/gazebo11/11.1.0/include/gazebo-11/gazebo/sensors/Sensor.hh:72:28: note: overridden virtual function is here
      public: virtual void Init();
                           ^
In file included from /Users/karsten/workspace/ros2/ros2_control_ws/src/gazebo_ros_pkgs/gazebo_ros/test/test_utils.cpp:17:
In file included from /usr/local/Cellar/gazebo11/11.1.0/include/gazebo-11/gazebo/sensors/sensors.hh:13:
/usr/local/Cellar/gazebo11/11.1.0/include/gazebo-11/gazebo/sensors/MultiCameraSensor.hh:70:35: error: 'Topic' overrides a member function but is not marked 'override' [-Werror,-Winconsistent-missing-override]
      public: virtual std::string Topic() const;
                                  ^
/usr/local/Cellar/gazebo11/11.1.0/include/gazebo-11/gazebo/sensors/Sensor.hh:144:35: note: overridden virtual function is here
      public: virtual std::string Topic() const;
                                  ^
In file included from /Users/karsten/workspace/ros2/ros2_control_ws/src/gazebo_ros_pkgs/gazebo_ros/test/test_utils.cpp:17:
In file included from /usr/local/Cellar/gazebo11/11.1.0/include/gazebo-11/gazebo/sensors/sensors.hh:13:
/usr/local/Cellar/gazebo11/11.1.0/include/gazebo-11/gazebo/sensors/MultiCameraSensor.hh:112:28: error: 'IsActive' overrides a member function but is not marked 'override' [-Werror,-Winconsistent-missing-override]
      public: virtual bool IsActive() const;
                           ^
/usr/local/Cellar/gazebo11/11.1.0/include/gazebo-11/gazebo/sensors/Sensor.hh:123:28: note: overridden virtual function is here
      public: virtual bool IsActive() const;
                           ^
In file included from /Users/karsten/workspace/ros2/ros2_control_ws/src/gazebo_ros_pkgs/gazebo_ros/test/test_utils.cpp:17:
In file included from /usr/local/Cellar/gazebo11/11.1.0/include/gazebo-11/gazebo/sensors/sensors.hh:13:
/usr/local/Cellar/gazebo11/11.1.0/include/gazebo-11/gazebo/sensors/MultiCameraSensor.hh:115:31: error: 'UpdateImpl' overrides a member function but is not marked 'override' [-Werror,-Winconsistent-missing-override]
      protected: virtual bool UpdateImpl(const bool _force);
                              ^
/usr/local/Cellar/gazebo11/11.1.0/include/gazebo-11/gazebo/sensors/Sensor.hh:198:31: note: overridden virtual function is here
      protected: virtual bool UpdateImpl(const bool /*_force*/) {return false;}
                              ^
In file included from /Users/karsten/workspace/ros2/ros2_control_ws/src/gazebo_ros_pkgs/gazebo_ros/test/test_utils.cpp:17:
In file included from /usr/local/Cellar/gazebo11/11.1.0/include/gazebo-11/gazebo/sensors/sensors.hh:13:
/usr/local/Cellar/gazebo11/11.1.0/include/gazebo-11/gazebo/sensors/MultiCameraSensor.hh:118:31: error: 'Fini' overrides a member function but is not marked 'override' [-Werror,-Winconsistent-missing-override]
      protected: virtual void Fini();
                              ^
/usr/local/Cellar/gazebo11/11.1.0/include/gazebo-11/gazebo/sensors/Sensor.hh:97:28: note: overridden virtual function is here
      public: virtual void Fini();
                           ^
6 errors generated.
make[2]: *** [test/CMakeFiles/test_utils.dir/test_utils.cpp.o] Error 1
make[1]: *** [test/CMakeFiles/test_utils.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
In file included from /Users/karsten/workspace/ros2/ros2_control_ws/src/gazebo_ros_pkgs/gazebo_ros/test/test_gazebo_ros_init.cpp:15:
In file included from /usr/local/Cellar/gazebo11/11.1.0/include/gazebo-11/gazebo/test/ServerFixture.hh:52:
In file included from /usr/local/Cellar/gazebo11/11.1.0/include/gazebo-11/gazebo/sensors/sensors.hh:13:
/usr/local/Cellar/gazebo11/11.1.0/include/gazebo-11/gazebo/sensors/MultiCameraSensor.hh:53:28: error: 'Load' overrides a member function but is not marked 'override' [-Werror,-Winconsistent-missing-override]
      public: virtual void Load(const std::string &_worldName);
                           ^
/usr/local/Cellar/gazebo11/11.1.0/include/gazebo-11/gazebo/sensors/Sensor.hh:69:28: note: overridden virtual function is here
      public: virtual void Load(const std::string &_worldName);
                           ^
In file included from /Users/karsten/workspace/ros2/ros2_control_ws/src/gazebo_ros_pkgs/gazebo_ros/test/test_gazebo_ros_init.cpp:15:
In file included from /usr/local/Cellar/gazebo11/11.1.0/include/gazebo-11/gazebo/test/ServerFixture.hh:52:
In file included from /usr/local/Cellar/gazebo11/11.1.0/include/gazebo-11/gazebo/sensors/sensors.hh:13:
/usr/local/Cellar/gazebo11/11.1.0/include/gazebo-11/gazebo/sensors/MultiCameraSensor.hh:56:28: error: 'Init' overrides a member function but is not marked 'override' [-Werror,-Winconsistent-missing-override]
      public: virtual void Init();
                           ^
/usr/local/Cellar/gazebo11/11.1.0/include/gazebo-11/gazebo/sensors/Sensor.hh:72:28: note: overridden virtual function is here
      public: virtual void Init();
                           ^
In file included from /Users/karsten/workspace/ros2/ros2_control_ws/src/gazebo_ros_pkgs/gazebo_ros/test/test_gazebo_ros_init.cpp:15:
In file included from /usr/local/Cellar/gazebo11/11.1.0/include/gazebo-11/gazebo/test/ServerFixture.hh:52:
In file included from /usr/local/Cellar/gazebo11/11.1.0/include/gazebo-11/gazebo/sensors/sensors.hh:13:
/usr/local/Cellar/gazebo11/11.1.0/include/gazebo-11/gazebo/sensors/MultiCameraSensor.hh:70:35: error: 'Topic' overrides a member function but is not marked 'override' [-Werror,-Winconsistent-missing-override]
      public: virtual std::string Topic() const;
                                  ^
/usr/local/Cellar/gazebo11/11.1.0/include/gazebo-11/gazebo/sensors/Sensor.hh:144:35: note: overridden virtual function is here
      public: virtual std::string Topic() const;
                                  ^
In file included from /Users/karsten/workspace/ros2/ros2_control_ws/src/gazebo_ros_pkgs/gazebo_ros/test/test_gazebo_ros_init.cpp:15:
In file included from /usr/local/Cellar/gazebo11/11.1.0/include/gazebo-11/gazebo/test/ServerFixture.hh:52:
In file included from /usr/local/Cellar/gazebo11/11.1.0/include/gazebo-11/gazebo/sensors/sensors.hh:13:
/usr/local/Cellar/gazebo11/11.1.0/include/gazebo-11/gazebo/sensors/MultiCameraSensor.hh:112:28: error: 'IsActive' overrides a member function but is not marked 'override' [-Werror,-Winconsistent-missing-override]
      public: virtual bool IsActive() const;
                           ^
/usr/local/Cellar/gazebo11/11.1.0/include/gazebo-11/gazebo/sensors/Sensor.hh:123:28: note: overridden virtual function is here
      public: virtual bool IsActive() const;
                           ^
In file included from /Users/karsten/workspace/ros2/ros2_control_ws/src/gazebo_ros_pkgs/gazebo_ros/test/test_gazebo_ros_init.cpp:15:
In file included from /usr/local/Cellar/gazebo11/11.1.0/include/gazebo-11/gazebo/test/ServerFixture.hh:52:
In file included from /usr/local/Cellar/gazebo11/11.1.0/include/gazebo-11/gazebo/sensors/sensors.hh:13:
/usr/local/Cellar/gazebo11/11.1.0/include/gazebo-11/gazebo/sensors/MultiCameraSensor.hh:115:31: error: 'UpdateImpl' overrides a member function but is not marked 'override' [-Werror,-Winconsistent-missing-override]
      protected: virtual bool UpdateImpl(const bool _force);
                              ^
/usr/local/Cellar/gazebo11/11.1.0/include/gazebo-11/gazebo/sensors/Sensor.hh:198:31: note: overridden virtual function is here
      protected: virtual bool UpdateImpl(const bool /*_force*/) {return false;}
                              ^
In file included from /Users/karsten/workspace/ros2/ros2_control_ws/src/gazebo_ros_pkgs/gazebo_ros/test/test_gazebo_ros_init.cpp:15:
In file included from /usr/local/Cellar/gazebo11/11.1.0/include/gazebo-11/gazebo/test/ServerFixture.hh:52:
In file included from /usr/local/Cellar/gazebo11/11.1.0/include/gazebo-11/gazebo/sensors/sensors.hh:13:
/usr/local/Cellar/gazebo11/11.1.0/include/gazebo-11/gazebo/sensors/MultiCameraSensor.hh:118:31: error: 'Fini' overrides a member function but is not marked 'override' [-Werror,-Winconsistent-missing-override]
      protected: virtual void Fini();
                              ^
/usr/local/Cellar/gazebo11/11.1.0/include/gazebo-11/gazebo/sensors/Sensor.hh:97:28: note: overridden virtual function is here
      public: virtual void Fini();
                           ^
6 errors generated.
make[2]: *** [test/CMakeFiles/test_gazebo_ros_init.dir/test_gazebo_ros_init.cpp.o] Error 1
make[1]: *** [test/CMakeFiles/test_gazebo_ros_init.dir/all] Error 2
In file included from /Users/karsten/workspace/ros2/ros2_control_ws/src/gazebo_ros_pkgs/gazebo_ros/test/test_gazebo_ros_link_wrench.cpp:15:
In file included from /usr/local/Cellar/gazebo11/11.1.0/include/gazebo-11/gazebo/test/ServerFixture.hh:52:
In file included from /usr/local/Cellar/gazebo11/11.1.0/include/gazebo-11/gazebo/sensors/sensors.hh:13:
/usr/local/Cellar/gazebo11/11.1.0/include/gazebo-11/gazebo/sensors/MultiCameraSensor.hh:53:28: error: 'Load' overrides a member function but is not marked 'override' [-Werror,-Winconsistent-missing-override]
      public: virtual void Load(const std::string &_worldName);
                           ^
/usr/local/Cellar/gazebo11/11.1.0/include/gazebo-11/gazebo/sensors/Sensor.hh:69:28: note: overridden virtual function is here
      public: virtual void Load(const std::string &_worldName);
                           ^
In file included from /Users/karsten/workspace/ros2/ros2_control_ws/src/gazebo_ros_pkgs/gazebo_ros/test/test_gazebo_ros_link_wrench.cpp:15:
In file included from /usr/local/Cellar/gazebo11/11.1.0/include/gazebo-11/gazebo/test/ServerFixture.hh:52:
In file included from /usr/local/Cellar/gazebo11/11.1.0/include/gazebo-11/gazebo/sensors/sensors.hh:13:
/usr/local/Cellar/gazebo11/11.1.0/include/gazebo-11/gazebo/sensors/MultiCameraSensor.hh:56:28: error: 'Init' overrides a member function but is not marked 'override' [-Werror,-Winconsistent-missing-override]
      public: virtual void Init();
                           ^
/usr/local/Cellar/gazebo11/11.1.0/include/gazebo-11/gazebo/sensors/Sensor.hh:72:28: note: overridden virtual function is here
      public: virtual void Init();
                           ^
In file included from /Users/karsten/workspace/ros2/ros2_control_ws/src/gazebo_ros_pkgs/gazebo_ros/test/test_gazebo_ros_link_wrench.cpp:15:
In file included from /usr/local/Cellar/gazebo11/11.1.0/include/gazebo-11/gazebo/test/ServerFixture.hh:52:
In file included from /usr/local/Cellar/gazebo11/11.1.0/include/gazebo-11/gazebo/sensors/sensors.hh:13:
/usr/local/Cellar/gazebo11/11.1.0/include/gazebo-11/gazebo/sensors/MultiCameraSensor.hh:70:35: error: 'Topic' overrides a member function but is not marked 'override' [-Werror,-Winconsistent-missing-override]
      public: virtual std::string Topic() const;
                                  ^
/usr/local/Cellar/gazebo11/11.1.0/include/gazebo-11/gazebo/sensors/Sensor.hh:144:35: note: overridden virtual function is here
      public: virtual std::string Topic() const;
                                  ^
In file included from /Users/karsten/workspace/ros2/ros2_control_ws/src/gazebo_ros_pkgs/gazebo_ros/test/test_gazebo_ros_link_wrench.cpp:15:
In file included from /usr/local/Cellar/gazebo11/11.1.0/include/gazebo-11/gazebo/test/ServerFixture.hh:52:
In file included from /usr/local/Cellar/gazebo11/11.1.0/include/gazebo-11/gazebo/sensors/sensors.hh:13:
/usr/local/Cellar/gazebo11/11.1.0/include/gazebo-11/gazebo/sensors/MultiCameraSensor.hh:112:28: error: 'IsActive' overrides a member function but is not marked 'override' [-Werror,-Winconsistent-missing-override]
      public: virtual bool IsActive() const;
                           ^
/usr/local/Cellar/gazebo11/11.1.0/include/gazebo-11/gazebo/sensors/Sensor.hh:123:28: note: overridden virtual function is here
      public: virtual bool IsActive() const;
                           ^
In file included from /Users/karsten/workspace/ros2/ros2_control_ws/src/gazebo_ros_pkgs/gazebo_ros/test/test_gazebo_ros_link_wrench.cpp:15:
In file included from /usr/local/Cellar/gazebo11/11.1.0/include/gazebo-11/gazebo/test/ServerFixture.hh:52:
In file included from /usr/local/Cellar/gazebo11/11.1.0/include/gazebo-11/gazebo/sensors/sensors.hh:13:
/usr/local/Cellar/gazebo11/11.1.0/include/gazebo-11/gazebo/sensors/MultiCameraSensor.hh:115:31: error: 'UpdateImpl' overrides a member function but is not marked 'override' [-Werror,-Winconsistent-missing-override]
      protected: virtual bool UpdateImpl(const bool _force);
                              ^
/usr/local/Cellar/gazebo11/11.1.0/include/gazebo-11/gazebo/sensors/Sensor.hh:198:31: note: overridden virtual function is here
      protected: virtual bool UpdateImpl(const bool /*_force*/) {return false;}
                              ^
In file included from /Users/karsten/workspace/ros2/ros2_control_ws/src/gazebo_ros_pkgs/gazebo_ros/test/test_gazebo_ros_link_wrench.cpp:15:
In file included from /usr/local/Cellar/gazebo11/11.1.0/include/gazebo-11/gazebo/test/ServerFixture.hh:52:
In file included from /usr/local/Cellar/gazebo11/11.1.0/include/gazebo-11/gazebo/sensors/sensors.hh:13:
/usr/local/Cellar/gazebo11/11.1.0/include/gazebo-11/gazebo/sensors/MultiCameraSensor.hh:118:31: error: 'Fini' overrides a member function but is not marked 'override' [-Werror,-Winconsistent-missing-override]
      protected: virtual void Fini();
                              ^
/usr/local/Cellar/gazebo11/11.1.0/include/gazebo-11/gazebo/sensors/Sensor.hh:97:28: note: overridden virtual function is here
      public: virtual void Fini();
                           ^
6 errors generated.
make[2]: *** [test/CMakeFiles/test_gazebo_ros_link_wrench.dir/test_gazebo_ros_link_wrench.cpp.o] Error 1
make[1]: *** [test/CMakeFiles/test_gazebo_ros_link_wrench.dir/all] Error 2
In file included from /Users/karsten/workspace/ros2/ros2_control_ws/src/gazebo_ros_pkgs/gazebo_ros/test/test_gazebo_ros_factory.cpp:15:
In file included from /usr/local/Cellar/gazebo11/11.1.0/include/gazebo-11/gazebo/test/ServerFixture.hh:52:
In file included from /usr/local/Cellar/gazebo11/11.1.0/include/gazebo-11/gazebo/sensors/sensors.hh:13:
/usr/local/Cellar/gazebo11/11.1.0/include/gazebo-11/gazebo/sensors/MultiCameraSensor.hh:53:28: error: 'Load' overrides a member function but is not marked 'override' [-Werror,-Winconsistent-missing-override]
      public: virtual void Load(const std::string &_worldName);
                           ^
/usr/local/Cellar/gazebo11/11.1.0/include/gazebo-11/gazebo/sensors/Sensor.hh:69:28: note: overridden virtual function is here
      public: virtual void Load(const std::string &_worldName);
                           ^
In file included from /Users/karsten/workspace/ros2/ros2_control_ws/src/gazebo_ros_pkgs/gazebo_ros/test/test_gazebo_ros_factory.cpp:15:
In file included from /usr/local/Cellar/gazebo11/11.1.0/include/gazebo-11/gazebo/test/ServerFixture.hh:52:
In file included from /usr/local/Cellar/gazebo11/11.1.0/include/gazebo-11/gazebo/sensors/sensors.hh:13:
/usr/local/Cellar/gazebo11/11.1.0/include/gazebo-11/gazebo/sensors/MultiCameraSensor.hh:56:28: error: 'Init' overrides a member function but is not marked 'override' [-Werror,-Winconsistent-missing-override]
      public: virtual void Init();
                           ^
/usr/local/Cellar/gazebo11/11.1.0/include/gazebo-11/gazebo/sensors/Sensor.hh:72:28: note: overridden virtual function is here
      public: virtual void Init();
                           ^
In file included from /Users/karsten/workspace/ros2/ros2_control_ws/src/gazebo_ros_pkgs/gazebo_ros/test/test_gazebo_ros_factory.cpp:15:
In file included from /usr/local/Cellar/gazebo11/11.1.0/include/gazebo-11/gazebo/test/ServerFixture.hh:52:
In file included from /usr/local/Cellar/gazebo11/11.1.0/include/gazebo-11/gazebo/sensors/sensors.hh:13:
/usr/local/Cellar/gazebo11/11.1.0/include/gazebo-11/gazebo/sensors/MultiCameraSensor.hh:70:35: error: 'Topic' overrides a member function but is not marked 'override' [-Werror,-Winconsistent-missing-override]
      public: virtual std::string Topic() const;
                                  ^
/usr/local/Cellar/gazebo11/11.1.0/include/gazebo-11/gazebo/sensors/Sensor.hh:144:35: note: overridden virtual function is here
      public: virtual std::string Topic() const;
                                  ^
In file included from /Users/karsten/workspace/ros2/ros2_control_ws/src/gazebo_ros_pkgs/gazebo_ros/test/test_gazebo_ros_factory.cpp:15:
In file included from /usr/local/Cellar/gazebo11/11.1.0/include/gazebo-11/gazebo/test/ServerFixture.hh:52:
In file included from /usr/local/Cellar/gazebo11/11.1.0/include/gazebo-11/gazebo/sensors/sensors.hh:13:
/usr/local/Cellar/gazebo11/11.1.0/include/gazebo-11/gazebo/sensors/MultiCameraSensor.hh:112:28: error: 'IsActive' overrides a member function but is not marked 'override' [-Werror,-Winconsistent-missing-override]
      public: virtual bool IsActive() const;
                           ^
/usr/local/Cellar/gazebo11/11.1.0/include/gazebo-11/gazebo/sensors/Sensor.hh:123:28: note: overridden virtual function is here
      public: virtual bool IsActive() const;
                           ^
In file included from /Users/karsten/workspace/ros2/ros2_control_ws/src/gazebo_ros_pkgs/gazebo_ros/test/test_gazebo_ros_factory.cpp:15:
In file included from /usr/local/Cellar/gazebo11/11.1.0/include/gazebo-11/gazebo/test/ServerFixture.hh:52:
In file included from /usr/local/Cellar/gazebo11/11.1.0/include/gazebo-11/gazebo/sensors/sensors.hh:13:
/usr/local/Cellar/gazebo11/11.1.0/include/gazebo-11/gazebo/sensors/MultiCameraSensor.hh:115:31: error: 'UpdateImpl' overrides a member function but is not marked 'override' [-Werror,-Winconsistent-missing-override]
      protected: virtual bool UpdateImpl(const bool _force);
                              ^
/usr/local/Cellar/gazebo11/11.1.0/include/gazebo-11/gazebo/sensors/Sensor.hh:198:31: note: overridden virtual function is here
      protected: virtual bool UpdateImpl(const bool /*_force*/) {return false;}
                              ^
In file included from /Users/karsten/workspace/ros2/ros2_control_ws/src/gazebo_ros_pkgs/gazebo_ros/test/test_gazebo_ros_factory.cpp:15:
In file included from /usr/local/Cellar/gazebo11/11.1.0/include/gazebo-11/gazebo/test/ServerFixture.hh:52:
In file included from /usr/local/Cellar/gazebo11/11.1.0/include/gazebo-11/gazebo/sensors/sensors.hh:13:
/usr/local/Cellar/gazebo11/11.1.0/include/gazebo-11/gazebo/sensors/MultiCameraSensor.hh:118:31: error: 'Fini' overrides a member function but is not marked 'override' [-Werror,-Winconsistent-missing-override]
      protected: virtual void Fini();
                              ^
/usr/local/Cellar/gazebo11/11.1.0/include/gazebo-11/gazebo/sensors/Sensor.hh:97:28: note: overridden virtual function is here
      public: virtual void Fini();
                           ^
6 errors generated.
make[2]: *** [test/CMakeFiles/test_gazebo_ros_factory.dir/test_gazebo_ros_factory.cpp.o] Error 1
make[1]: *** [test/CMakeFiles/test_gazebo_ros_factory.dir/all] Error 2
In file included from /Users/karsten/workspace/ros2/ros2_control_ws/src/gazebo_ros_pkgs/gazebo_ros/test/test_gazebo_ros_joint_effort.cpp:15:
In file included from /usr/local/Cellar/gazebo11/11.1.0/include/gazebo-11/gazebo/test/ServerFixture.hh:52:
In file included from /usr/local/Cellar/gazebo11/11.1.0/include/gazebo-11/gazebo/sensors/sensors.hh:13:
/usr/local/Cellar/gazebo11/11.1.0/include/gazebo-11/gazebo/sensors/MultiCameraSensor.hh:53:28: error: 'Load' overrides a member function but is not marked 'override' [-Werror,-Winconsistent-missing-override]
      public: virtual void Load(const std::string &_worldName);
                           ^
/usr/local/Cellar/gazebo11/11.1.0/include/gazebo-11/gazebo/sensors/Sensor.hh:69:28: note: overridden virtual function is here
      public: virtual void Load(const std::string &_worldName);
                           ^
In file included from /Users/karsten/workspace/ros2/ros2_control_ws/src/gazebo_ros_pkgs/gazebo_ros/test/test_gazebo_ros_joint_effort.cpp:15:
In file included from /usr/local/Cellar/gazebo11/11.1.0/include/gazebo-11/gazebo/test/ServerFixture.hh:52:
In file included from /usr/local/Cellar/gazebo11/11.1.0/include/gazebo-11/gazebo/sensors/sensors.hh:13:
/usr/local/Cellar/gazebo11/11.1.0/include/gazebo-11/gazebo/sensors/MultiCameraSensor.hh:56:28: error: 'Init' overrides a member function but is not marked 'override' [-Werror,-Winconsistent-missing-override]
      public: virtual void Init();
                           ^
/usr/local/Cellar/gazebo11/11.1.0/include/gazebo-11/gazebo/sensors/Sensor.hh:72:28: note: overridden virtual function is here
      public: virtual void Init();
                           ^
In file included from /Users/karsten/workspace/ros2/ros2_control_ws/src/gazebo_ros_pkgs/gazebo_ros/test/test_gazebo_ros_joint_effort.cpp:15:
In file included from /usr/local/Cellar/gazebo11/11.1.0/include/gazebo-11/gazebo/test/ServerFixture.hh:52:
In file included from /usr/local/Cellar/gazebo11/11.1.0/include/gazebo-11/gazebo/sensors/sensors.hh:13:
/usr/local/Cellar/gazebo11/11.1.0/include/gazebo-11/gazebo/sensors/MultiCameraSensor.hh:70:35: error: 'Topic' overrides a member function but is not marked 'override' [-Werror,-Winconsistent-missing-override]
      public: virtual std::string Topic() const;
                                  ^
/usr/local/Cellar/gazebo11/11.1.0/include/gazebo-11/gazebo/sensors/Sensor.hh:144:35: note: overridden virtual function is here
      public: virtual std::string Topic() const;
                                  ^
In file included from /Users/karsten/workspace/ros2/ros2_control_ws/src/gazebo_ros_pkgs/gazebo_ros/test/test_gazebo_ros_joint_effort.cpp:15:
In file included from /usr/local/Cellar/gazebo11/11.1.0/include/gazebo-11/gazebo/test/ServerFixture.hh:52:
In file included from /usr/local/Cellar/gazebo11/11.1.0/include/gazebo-11/gazebo/sensors/sensors.hh:13:
/usr/local/Cellar/gazebo11/11.1.0/include/gazebo-11/gazebo/sensors/MultiCameraSensor.hh:112:28: error: 'IsActive' overrides a member function but is not marked 'override' [-Werror,-Winconsistent-missing-override]
      public: virtual bool IsActive() const;
                           ^
/usr/local/Cellar/gazebo11/11.1.0/include/gazebo-11/gazebo/sensors/Sensor.hh:123:28: note: overridden virtual function is here
      public: virtual bool IsActive() const;
                           ^
In file included from /Users/karsten/workspace/ros2/ros2_control_ws/src/gazebo_ros_pkgs/gazebo_ros/test/test_gazebo_ros_joint_effort.cpp:15:
In file included from /usr/local/Cellar/gazebo11/11.1.0/include/gazebo-11/gazebo/test/ServerFixture.hh:52:
In file included from /usr/local/Cellar/gazebo11/11.1.0/include/gazebo-11/gazebo/sensors/sensors.hh:13:
/usr/local/Cellar/gazebo11/11.1.0/include/gazebo-11/gazebo/sensors/MultiCameraSensor.hh:115:31: error: 'UpdateImpl' overrides a member function but is not marked 'override' [-Werror,-Winconsistent-missing-override]
      protected: virtual bool UpdateImpl(const bool _force);
                              ^
/usr/local/Cellar/gazebo11/11.1.0/include/gazebo-11/gazebo/sensors/Sensor.hh:198:31: note: overridden virtual function is here
      protected: virtual bool UpdateImpl(const bool /*_force*/) {return false;}
                              ^
In file included from /Users/karsten/workspace/ros2/ros2_control_ws/src/gazebo_ros_pkgs/gazebo_ros/test/test_gazebo_ros_joint_effort.cpp:15:
In file included from /usr/local/Cellar/gazebo11/11.1.0/include/gazebo-11/gazebo/test/ServerFixture.hh:52:
In file included from /usr/local/Cellar/gazebo11/11.1.0/include/gazebo-11/gazebo/sensors/sensors.hh:13:
/usr/local/Cellar/gazebo11/11.1.0/include/gazebo-11/gazebo/sensors/MultiCameraSensor.hh:118:31: error: 'Fini' overrides a member function but is not marked 'override' [-Werror,-Winconsistent-missing-override]
      protected: virtual void Fini();
                              ^
/usr/local/Cellar/gazebo11/11.1.0/include/gazebo-11/gazebo/sensors/Sensor.hh:97:28: note: overridden virtual function is here
      public: virtual void Fini();
                           ^
6 errors generated.
make[2]: *** [test/CMakeFiles/test_gazebo_ros_joint_effort.dir/test_gazebo_ros_joint_effort.cpp.o] Error 1
make[1]: *** [test/CMakeFiles/test_gazebo_ros_joint_effort.dir/all] Error 2
In file included from /Users/karsten/workspace/ros2/ros2_control_ws/src/gazebo_ros_pkgs/gazebo_ros/test/test_gazebo_ros_properties.cpp:15:
In file included from /usr/local/Cellar/gazebo11/11.1.0/include/gazebo-11/gazebo/test/ServerFixture.hh:52:
In file included from /usr/local/Cellar/gazebo11/11.1.0/include/gazebo-11/gazebo/sensors/sensors.hh:13:
/usr/local/Cellar/gazebo11/11.1.0/include/gazebo-11/gazebo/sensors/MultiCameraSensor.hh:53:28: error: 'Load' overrides a member function but is not marked 'override' [-Werror,-Winconsistent-missing-override]
      public: virtual void Load(const std::string &_worldName);
                           ^
/usr/local/Cellar/gazebo11/11.1.0/include/gazebo-11/gazebo/sensors/Sensor.hh:69:28: note: overridden virtual function is here
      public: virtual void Load(const std::string &_worldName);
                           ^
In file included from /Users/karsten/workspace/ros2/ros2_control_ws/src/gazebo_ros_pkgs/gazebo_ros/test/test_gazebo_ros_properties.cpp:15:
In file included from /usr/local/Cellar/gazebo11/11.1.0/include/gazebo-11/gazebo/test/ServerFixture.hh:52:
In file included from /usr/local/Cellar/gazebo11/11.1.0/include/gazebo-11/gazebo/sensors/sensors.hh:13:
/usr/local/Cellar/gazebo11/11.1.0/include/gazebo-11/gazebo/sensors/MultiCameraSensor.hh:56:28: error: 'Init' overrides a member function but is not marked 'override' [-Werror,-Winconsistent-missing-override]
      public: virtual void Init();
                           ^
/usr/local/Cellar/gazebo11/11.1.0/include/gazebo-11/gazebo/sensors/Sensor.hh:72:28: note: overridden virtual function is here
      public: virtual void Init();
                           ^
In file included from /Users/karsten/workspace/ros2/ros2_control_ws/src/gazebo_ros_pkgs/gazebo_ros/test/test_gazebo_ros_properties.cpp:15:
In file included from /usr/local/Cellar/gazebo11/11.1.0/include/gazebo-11/gazebo/test/ServerFixture.hh:52:
In file included from /usr/local/Cellar/gazebo11/11.1.0/include/gazebo-11/gazebo/sensors/sensors.hh:13:
/usr/local/Cellar/gazebo11/11.1.0/include/gazebo-11/gazebo/sensors/MultiCameraSensor.hh:70:35: error: 'Topic' overrides a member function but is not marked 'override' [-Werror,-Winconsistent-missing-override]
      public: virtual std::string Topic() const;
                                  ^
/usr/local/Cellar/gazebo11/11.1.0/include/gazebo-11/gazebo/sensors/Sensor.hh:144:35: note: overridden virtual function is here
      public: virtual std::string Topic() const;
                                  ^
In file included from /Users/karsten/workspace/ros2/ros2_control_ws/src/gazebo_ros_pkgs/gazebo_ros/test/test_gazebo_ros_properties.cpp:15:
In file included from /usr/local/Cellar/gazebo11/11.1.0/include/gazebo-11/gazebo/test/ServerFixture.hh:52:
In file included from /usr/local/Cellar/gazebo11/11.1.0/include/gazebo-11/gazebo/sensors/sensors.hh:13:
/usr/local/Cellar/gazebo11/11.1.0/include/gazebo-11/gazebo/sensors/MultiCameraSensor.hh:112:28: error: 'IsActive' overrides a member function but is not marked 'override' [-Werror,-Winconsistent-missing-override]
      public: virtual bool IsActive() const;
                           ^
/usr/local/Cellar/gazebo11/11.1.0/include/gazebo-11/gazebo/sensors/Sensor.hh:123:28: note: overridden virtual function is here
      public: virtual bool IsActive() const;
                           ^
In file included from /Users/karsten/workspace/ros2/ros2_control_ws/src/gazebo_ros_pkgs/gazebo_ros/test/test_gazebo_ros_properties.cpp:15:
In file included from /usr/local/Cellar/gazebo11/11.1.0/include/gazebo-11/gazebo/test/ServerFixture.hh:52:
In file included from /usr/local/Cellar/gazebo11/11.1.0/include/gazebo-11/gazebo/sensors/sensors.hh:13:
/usr/local/Cellar/gazebo11/11.1.0/include/gazebo-11/gazebo/sensors/MultiCameraSensor.hh:115:31: error: 'UpdateImpl' overrides a member function but is not marked 'override' [-Werror,-Winconsistent-missing-override]
      protected: virtual bool UpdateImpl(const bool _force);
                              ^
/usr/local/Cellar/gazebo11/11.1.0/include/gazebo-11/gazebo/sensors/Sensor.hh:198:31: note: overridden virtual function is here
      protected: virtual bool UpdateImpl(const bool /*_force*/) {return false;}
                              ^
In file included from /Users/karsten/workspace/ros2/ros2_control_ws/src/gazebo_ros_pkgs/gazebo_ros/test/test_gazebo_ros_properties.cpp:15:
In file included from /usr/local/Cellar/gazebo11/11.1.0/include/gazebo-11/gazebo/test/ServerFixture.hh:52:
In file included from /usr/local/Cellar/gazebo11/11.1.0/include/gazebo-11/gazebo/sensors/sensors.hh:13:
/usr/local/Cellar/gazebo11/11.1.0/include/gazebo-11/gazebo/sensors/MultiCameraSensor.hh:118:31: error: 'Fini' overrides a member function but is not marked 'override' [-Werror,-Winconsistent-missing-override]
      protected: virtual void Fini();
                              ^
/usr/local/Cellar/gazebo11/11.1.0/include/gazebo-11/gazebo/sensors/Sensor.hh:97:28: note: overridden virtual function is here
      public: virtual void Fini();
                           ^
6 errors generated.
make[2]: *** [test/CMakeFiles/test_gazebo_ros_properties.dir/test_gazebo_ros_properties.cpp.o] Error 1
make[1]: *** [test/CMakeFiles/test_gazebo_ros_properties.dir/all] Error 2
In file included from /Users/karsten/workspace/ros2/ros2_control_ws/src/gazebo_ros_pkgs/gazebo_ros/test/test_gazebo_ros_state.cpp:15:
In file included from /usr/local/Cellar/gazebo11/11.1.0/include/gazebo-11/gazebo/test/ServerFixture.hh:52:
In file included from /usr/local/Cellar/gazebo11/11.1.0/include/gazebo-11/gazebo/sensors/sensors.hh:13:
/usr/local/Cellar/gazebo11/11.1.0/include/gazebo-11/gazebo/sensors/MultiCameraSensor.hh:53:28: error: 'Load' overrides a member function but is not marked 'override' [-Werror,-Winconsistent-missing-override]
      public: virtual void Load(const std::string &_worldName);
                           ^
/usr/local/Cellar/gazebo11/11.1.0/include/gazebo-11/gazebo/sensors/Sensor.hh:69:28: note: overridden virtual function is here
      public: virtual void Load(const std::string &_worldName);
                           ^
In file included from /Users/karsten/workspace/ros2/ros2_control_ws/src/gazebo_ros_pkgs/gazebo_ros/test/test_gazebo_ros_state.cpp:15:
In file included from /usr/local/Cellar/gazebo11/11.1.0/include/gazebo-11/gazebo/test/ServerFixture.hh:52:
In file included from /usr/local/Cellar/gazebo11/11.1.0/include/gazebo-11/gazebo/sensors/sensors.hh:13:
/usr/local/Cellar/gazebo11/11.1.0/include/gazebo-11/gazebo/sensors/MultiCameraSensor.hh:56:28: error: 'Init' overrides a member function but is not marked 'override' [-Werror,-Winconsistent-missing-override]
      public: virtual void Init();
                           ^
/usr/local/Cellar/gazebo11/11.1.0/include/gazebo-11/gazebo/sensors/Sensor.hh:72:28: note: overridden virtual function is here
      public: virtual void Init();
                           ^
In file included from /Users/karsten/workspace/ros2/ros2_control_ws/src/gazebo_ros_pkgs/gazebo_ros/test/test_gazebo_ros_state.cpp:15:
In file included from /usr/local/Cellar/gazebo11/11.1.0/include/gazebo-11/gazebo/test/ServerFixture.hh:52:
In file included from /usr/local/Cellar/gazebo11/11.1.0/include/gazebo-11/gazebo/sensors/sensors.hh:13:
/usr/local/Cellar/gazebo11/11.1.0/include/gazebo-11/gazebo/sensors/MultiCameraSensor.hh:70:35: error: 'Topic' overrides a member function but is not marked 'override' [-Werror,-Winconsistent-missing-override]
      public: virtual std::string Topic() const;
                                  ^
/usr/local/Cellar/gazebo11/11.1.0/include/gazebo-11/gazebo/sensors/Sensor.hh:144:35: note: overridden virtual function is here
      public: virtual std::string Topic() const;
                                  ^
In file included from /Users/karsten/workspace/ros2/ros2_control_ws/src/gazebo_ros_pkgs/gazebo_ros/test/test_gazebo_ros_state.cpp:15:
In file included from /usr/local/Cellar/gazebo11/11.1.0/include/gazebo-11/gazebo/test/ServerFixture.hh:52:
In file included from /usr/local/Cellar/gazebo11/11.1.0/include/gazebo-11/gazebo/sensors/sensors.hh:13:
/usr/local/Cellar/gazebo11/11.1.0/include/gazebo-11/gazebo/sensors/MultiCameraSensor.hh:112:28: error: 'IsActive' overrides a member function but is not marked 'override' [-Werror,-Winconsistent-missing-override]
      public: virtual bool IsActive() const;
                           ^
/usr/local/Cellar/gazebo11/11.1.0/include/gazebo-11/gazebo/sensors/Sensor.hh:123:28: note: overridden virtual function is here
      public: virtual bool IsActive() const;
                           ^
In file included from /Users/karsten/workspace/ros2/ros2_control_ws/src/gazebo_ros_pkgs/gazebo_ros/test/test_gazebo_ros_state.cpp:15:
In file included from /usr/local/Cellar/gazebo11/11.1.0/include/gazebo-11/gazebo/test/ServerFixture.hh:52:
In file included from /usr/local/Cellar/gazebo11/11.1.0/include/gazebo-11/gazebo/sensors/sensors.hh:13:
/usr/local/Cellar/gazebo11/11.1.0/include/gazebo-11/gazebo/sensors/MultiCameraSensor.hh:115:31: error: 'UpdateImpl' overrides a member function but is not marked 'override' [-Werror,-Winconsistent-missing-override]
      protected: virtual bool UpdateImpl(const bool _force);
                              ^
/usr/local/Cellar/gazebo11/11.1.0/include/gazebo-11/gazebo/sensors/Sensor.hh:198:31: note: overridden virtual function is here
      protected: virtual bool UpdateImpl(const bool /*_force*/) {return false;}
                              ^
In file included from /Users/karsten/workspace/ros2/ros2_control_ws/src/gazebo_ros_pkgs/gazebo_ros/test/test_gazebo_ros_state.cpp:15:
In file included from /usr/local/Cellar/gazebo11/11.1.0/include/gazebo-11/gazebo/test/ServerFixture.hh:52:
In file included from /usr/local/Cellar/gazebo11/11.1.0/include/gazebo-11/gazebo/sensors/sensors.hh:13:
/usr/local/Cellar/gazebo11/11.1.0/include/gazebo-11/gazebo/sensors/MultiCameraSensor.hh:118:31: error: 'Fini' overrides a member function but is not marked 'override' [-Werror,-Winconsistent-missing-override]
      protected: virtual void Fini();
                              ^
/usr/local/Cellar/gazebo11/11.1.0/include/gazebo-11/gazebo/sensors/Sensor.hh:97:28: note: overridden virtual function is here
      public: virtual void Fini();
                           ^
6 errors generated.
make[2]: *** [test/CMakeFiles/test_gazebo_ros_state.dir/test_gazebo_ros_state.cpp.o] Error 1
make[1]: *** [test/CMakeFiles/test_gazebo_ros_state.dir/all] Error 2
make: *** [all] Error 2

Signed-off-by: Karsten Knese <Karsten1987@users.noreply.github.com>
@chapulina chapulina merged commit 4182629 into ros-simulation:ros2 Aug 19, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants