clydemcqueen / tello_ros

C++ ROS2 driver for DJI Tello drones
BSD 3-Clause "New" or "Revised" License
193 stars 65 forks source link

Add Clang warnings #39

Open clydemcqueen opened 5 years ago

clydemcqueen commented 5 years ago

Add this to CMakeLists.txt:

if (CMAKE_COMPILER_IS_GNUCXX OR CMAKE_CXX_COMPILER_ID MATCHES "Clang") add_compile_options(-Wall -Wextra -Wpedantic) endif ()

And then fix the warnings.