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

Fix warnings and package dependencies #14

Open
wants to merge 2 commits into
base: indigo-devel
Choose a base branch
from

Conversation

howardcochran
Copy link

These changes make the package build warning-free on gcc-5.4.0 with -Wall and -Wextra flags enabled. The missing dependencies must be corrected in order to use this package in the Yocto build system.

Howard Cochran added 2 commits January 24, 2017 23:15
Newest compilers complain about constructor initialization order.
@@ -3,6 +3,7 @@ add_executable(${PROJECT_NAME}_node driver controller channel)
add_dependencies(${PROJECT_NAME}_node ${PROJECT_NAME}_script roboteq_msgs_generate_messages_cpp)
target_link_libraries(${PROJECT_NAME}_node ${PROJECT_NAME}_script ${catkin_LIBRARIES})
set_target_properties(${PROJECT_NAME}_node PROPERTIES OUTPUT_NAME driver_node PREFIX "")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Wextra -Wno-unused-parameter")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would prefer set_directory_properties, see:

https://github.com/ros/ros_comm/search?q=set_directory_properties&type=Code

Otherwise this all LGTM.

@@ -1,7 +1,7 @@
cmake_minimum_required(VERSION 2.8.3)
project(roboteq_driver)

find_package(catkin REQUIRED COMPONENTS roboteq_msgs roscpp serial)
find_package(catkin REQUIRED COMPONENTS roscpp serial message_generation std_msgs roboteq_msgs)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why are these necessary here? This package doesn't generate any messages, and roboteq_msgs contains the dependency on the std_msgs.

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.

2 participants