Skip to content

Commit

Permalink
Add compiler options (#10)
Browse files Browse the repository at this point in the history
  • Loading branch information
MatthijsBurgh authored Sep 28, 2022

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
2 parents 0b295f2 + 9fe3bca commit 9d2b404
Showing 3 changed files with 9 additions and 6 deletions.
7 changes: 5 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
cmake_minimum_required(VERSION 2.8.3)
cmake_minimum_required(VERSION 3.0.2)
project(virtual_cam)

add_compile_options(-Wall -Werror=all)
add_compile_options(-Wextra -Werror=extra)

find_package(catkin REQUIRED COMPONENTS cv_bridge roscpp message_generation rgbd rosbag tf)
find_package(OpenCV REQUIRED)

@@ -32,7 +35,7 @@ catkin_package(
## Build ##
###########

include_directories(include ${catkin_INCLUDE_DIRS} ${OpenCV_INCLUDE_DIRS})
include_directories(include SYSTEM ${catkin_INCLUDE_DIRS} ${OpenCV_INCLUDE_DIRS})

# Declare a cpp library
add_library(virtual_cam_image_loader
2 changes: 1 addition & 1 deletion src/crop.cpp
Original file line number Diff line number Diff line change
@@ -57,7 +57,7 @@ Image Crop()

// ----------------------------------------------------------------------------------------------------

void CallBackFunc(int event, int x, int y, int flags, void* userdata)
void CallBackFunc(int event, int x, int y, int /*flags*/, void* /*userdata*/)
{
cv::Point2d mouse_pos(x / (double)rgb_resized.cols, y / (double)rgb_resized.cols);

6 changes: 3 additions & 3 deletions src/save.cpp
Original file line number Diff line number Diff line change
@@ -60,9 +60,9 @@ bool takeAPicturePNG(virtual_cam::cheeseRequest &req, virtual_cam::cheeseRespons


void ImageCallbackCheese(const sensor_msgs::ImageConstPtr image_msg,
const sensor_msgs::CameraInfoConstPtr cam_info_msg,
const sensor_msgs::ImageConstPtr depth_image_msg,
const sensor_msgs::CameraInfoConstPtr cam_info_depth_msg)
const sensor_msgs::CameraInfoConstPtr /*cam_info_msg*/,
const sensor_msgs::ImageConstPtr /*depth_image_msg*/,
const sensor_msgs::CameraInfoConstPtr /*cam_info_depth_msg*/)
{
rgb_image = image_msg;
}

0 comments on commit 9d2b404

Please sign in to comment.