diff --git a/CMake/external_catch2.cmake b/CMake/external_catch2.cmake index 73e46ff9cd..aab0a97fa4 100644 --- a/CMake/external_catch2.cmake +++ b/CMake/external_catch2.cmake @@ -15,7 +15,7 @@ function(get_catch2) # So instead, we invoke a new CMake project just to download it: configure_file( CMake/catch2-download.cmake.in ${CMAKE_BINARY_DIR}/external-projects/catch2-download/CMakeLists.txt ) - execute_process( COMMAND "${CMAKE_COMMAND}" -G "${CMAKE_GENERATOR}" . + execute_process( COMMAND "${CMAKE_COMMAND}" -G "${CMAKE_GENERATOR}" . "--no-warn-unused-cli" -DCMAKE_MAKE_PROGRAM=${CMAKE_MAKE_PROGRAM} -DCMAKE_TOOLCHAIN_FILE=${CMAKE_TOOLCHAIN_FILE} -DCMAKE_BUILD_TYPE=${CMAKE_BUILD_TYPE} diff --git a/CMake/external_json.cmake b/CMake/external_json.cmake index 6efbf39bea..69c84ffeec 100644 --- a/CMake/external_json.cmake +++ b/CMake/external_json.cmake @@ -18,7 +18,7 @@ function(get_nlohmann_json) # So instead, we invoke a new CMake project just to download pybind: configure_file( CMake/json-download.cmake.in ${CMAKE_BINARY_DIR}/external-projects/json-download/CMakeLists.txt ) - execute_process( COMMAND "${CMAKE_COMMAND}" -G "${CMAKE_GENERATOR}" . + execute_process( COMMAND "${CMAKE_COMMAND}" -G "${CMAKE_GENERATOR}" . "--no-warn-unused-cli" -DCMAKE_MAKE_PROGRAM=${CMAKE_MAKE_PROGRAM} -DCMAKE_TOOLCHAIN_FILE=${CMAKE_TOOLCHAIN_FILE} -DCMAKE_BUILD_TYPE=${CMAKE_BUILD_TYPE} diff --git a/CMake/external_libusb.cmake b/CMake/external_libusb.cmake index 22acb98f51..7d32981932 100644 --- a/CMake/external_libusb.cmake +++ b/CMake/external_libusb.cmake @@ -20,6 +20,7 @@ ExternalProject_Add( -DANDROID_ABI=${ANDROID_ABI} -DANDROID_STL=${ANDROID_STL} -DCMAKE_INSTALL_PREFIX=${CMAKE_CURRENT_BINARY_DIR}/libusb_install + --no-warn-unused-cli TEST_COMMAND "" BUILD_BYPRODUCTS ${CMAKE_CURRENT_BINARY_DIR}/libusb_install/lib/${CMAKE_STATIC_LIBRARY_PREFIX}usb${CMAKE_STATIC_LIBRARY_SUFFIX} ) diff --git a/src/cuda/cuda-pointcloud.cu b/src/cuda/cuda-pointcloud.cu index b0557dd74d..2f0188b036 100644 --- a/src/cuda/cuda-pointcloud.cu +++ b/src/cuda/cuda-pointcloud.cu @@ -107,6 +107,8 @@ void rscuda::deproject_depth_cuda(float * points, const rs2_intrinsics & intrin, result = cudaMemcpy(points, dev_points, count * sizeof(float) * 3, cudaMemcpyDeviceToHost); assert(result == cudaSuccess); + if (result); // suppress warning about "variable "result" was set but never used" + cudaFree(dev_points); cudaFree(dev_depth); cudaFree(dev_intrin); diff --git a/third-party/libusb/CMakeLists.txt b/third-party/libusb/CMakeLists.txt index ce9cd49292..69fb41c2cd 100644 --- a/third-party/libusb/CMakeLists.txt +++ b/third-party/libusb/CMakeLists.txt @@ -1,7 +1,5 @@ -# ubuntu 12.04 LTS cmake version 2.8.7 -# ubuntu 14.04 LTS cmake version 2.8.12.2 -# ubuntu 16.04 LTS cmake version 3.5.1 -cmake_minimum_required(VERSION 2.8.3) +# our current cmake version is 3.8 +cmake_minimum_required(VERSION 3.8) project(usb) diff --git a/unit-tests/LRS_jetson_compile_pipeline.stats b/unit-tests/LRS_jetson_compile_pipeline.stats index a7f300cca2..96258f3a93 100644 --- a/unit-tests/LRS_jetson_compile_pipeline.stats +++ b/unit-tests/LRS_jetson_compile_pipeline.stats @@ -1,2 +1,2 @@ -warnings 1 +warnings 0 diff --git a/unit-tests/LRS_windows_compile_pipeline.stats b/unit-tests/LRS_windows_compile_pipeline.stats index a7f300cca2..96258f3a93 100644 --- a/unit-tests/LRS_windows_compile_pipeline.stats +++ b/unit-tests/LRS_windows_compile_pipeline.stats @@ -1,2 +1,2 @@ -warnings 1 +warnings 0