Expected Behavior
Build without warnings.
Current Behavior
Warnings in src/utils/apiproto_utils/src/apiproto.c
Steps to Reproduce
Provide a detailed set of steps to reproduce the bug.
scripts/build.sh -c --work-folder .
If you use -u or --build-unit-tests the error disappears because the flag -Wconversion is not set:
|
if (NOT ADUC_BUILD_UNIT_TESTS) |
|
set (COMPILER_HARDENING_FLAGS "${COMPILER_HARDENING_FLAGS} -Wconversion") |
|
endif () |
Device Information
- Host OS [e.g. Ubuntu 22.04]: Debian 12 (docker)
- Architecture [e.g. amd64, arm32, arm64]: amd64
- Provisioning Method: symmetric key
- DU Agent Version (run 'sudo -u adu /usr/bin/AducIotAgent -v'):
1.3.1, 1.4.0
Logs
�[4m�[1m�[1;32mBuilding ADU Agent�[0m
�[1;34m*�[0m Clean build: true
�[1;34m*�[0m Documentation: false
�[1;34m*�[0m Platform layer: linux
�[1;34m*�[0m Trace target deps: false
�[1;34m*�[0m Step handlers: microsoft/apt,microsoft/script,microsoft/simulator,microsoft/swupdate_v2
�[1;34m*�[0m Build type: Debug
�[1;34m*�[0m Log directory: /var/log/adu
�[1;34m*�[0m Enable console log: true
�[1;34m*�[0m Enable file log: true
�[1;34m*�[0m Logging library: zlog
�[1;34m*�[0m Output directory: /workspaces/iot-hub-device-update/scripts/../out
�[1;34m*�[0m Build unit tests: false
�[1;34m*�[0m Coverage mode: false
�[1;34m*�[0m Enable E2E testing: false
�[1;34m*�[0m Build packages: false
�[1;34m*�[0m CMake: /workspaces/iot-hub-device-update/scripts/../.workspace/deviceupdate-cmake/bin/cmake
�[1;34m*�[0m CMake version: 3.23.2
�[1;34m*�[0m shellcheck: /workspaces/iot-hub-device-update/deviceupdate-shellcheck
�[1;34m*�[0m shellcheck version:
�[1;34m*�[0m Static analysis: (none)
�[1;34m*�[0m Include Test Root Keys: false
�[1;34m*�[0m Use Curl, not DO, for RootKey Package Download? true
�[1;34m*�[0m Support Delivery Optimization: false
CMAKE Options:
-DADUC_BUILD_DOCUMENTATION:BOOL=false
-DADUC_BUILD_UNIT_TESTS:BOOL=false
-DADUC_BUILD_PACKAGES:BOOL=false
-DADUC_STEP_HANDLERS:STRING=microsoft/apt,microsoft/script,microsoft/simulator,microsoft/swupdate_v2
-DADUC_ENABLE_E2E_TESTING=false
-DADUC_LOG_FOLDER:STRING=/var/log/adu
-DADUC_ENABLE_CONSOLE_LOG:BOOL=true
-DADUC_ENABLE_FILE_LOG:BOOL=true
-DADUC_LOGGING_LIBRARY:STRING=zlog
-DADUC_PLATFORM_LAYER:STRING=linux
-DADUC_TRACE_TARGET_DEPS=false
-DADUC_USE_TEST_ROOT_KEYS=false
-DADUC_ROOTKEY_PKG_DOWNLOAD_WITH_CURL=true
-DADUC_BUILD_WITH_DELIVERY_OPTIMIZATION:BOOL=false
-DADUC_TMP_DIR_PATH:STRING=/workspaces/iot-hub-device-update
-DCMAKE_BUILD_TYPE:STRING=Debug
-DCMAKE_EXPORT_COMPILE_COMMANDS:BOOL=ON
-DCMAKE_LIBRARY_OUTPUT_DIRECTORY:STRING=/workspaces/iot-hub-device-update/scripts/../out/lib
-DCMAKE_RUNTIME_OUTPUT_DIRECTORY:STRING=/workspaces/iot-hub-device-update/scripts/../out/bin
-DCMAKE_INSTALL_PREFIX=/usr/local
-DADUC_BUILD_DELTA_HANDLER:BOOL=false
Configuring build (clean build requested)...
-- System processor: x86_64
-- The C compiler identification is GNU 10.2.1
-- The CXX compiler identification is GNU 10.2.1
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/gcc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/g++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
--
-- CMAKE_SYSTEM_NAME: Linux
-- CMAKE_SYSTEM_VERSION: 6.17.0-35-generic
-- CMAKE_SYSTEM_PROCESSOR: x86_64
-- CMAKE_GENERATOR: Ninja
-- CMAKE_GENERATOR_PLATFORM:
-- CMAKE_BUILD_TYPE: Debug
-- CMAKE_C_COMPILER: /usr/bin/gcc
-- CMAKE_CXX_COMPILER: /usr/bin/g++
-- CMAKE_BINARY_DIR: /workspaces/iot-hub-device-update/out
-- CMAKE_SOURCE_DIR: /workspaces/iot-hub-device-update
-- CMAKE_BUILD_TYPE: Debug
--
-- Found Python3: /usr/bin/python3.9 (found version "3.9.2") found components: Interpreter
-- Generating result.h from result_codes.json (reason: cache file missing)...
-- Generating extension result code headers...
-- Extension headers generation output:
Generating header for extension 'swupdate_handler_v2'...
JSON: /workspaces/iot-hub-device-update/src/extensions/step_handlers/swupdate_handler_v2/swupdate_handler_result_codes.json
Output: /workspaces/iot-hub-device-update/src/inc/aduc/swupdate_handler_result_codes.h
SUCCESS: swupdate_handler_result_codes.h (up-to-date)
Successfully generated headers for 1 extension(s)
Overwriting file at /workspaces/iot-hub-device-update/src/inc/aduc/result.h
Generating result.h file at: /workspaces/iot-hub-device-update/src/inc/aduc/result.h
Loading extensions config from: /workspaces/iot-hub-device-update/scripts/error_code_generator_defs/extension_configs.json
Found extension: SWUpdate Handler v2 Extended Result Codes (swupdate_handler_result_codes.h)
Parsing JSON file...
Generating result.h file...
No changes detected in /workspaces/iot-hub-device-update/src/inc/aduc/result.h, skipping write
-- clang-format not found, skipping formatting of result.h
-- result.h generated successfully and cache updated
-- Found Parson: /usr/local/include
-- Found IotHubClient: /usr/local/include/azureiot
-- Looking for include file stdint.h
-- Looking for include file stdint.h - found
-- Looking for include file stdbool.h
-- Looking for include file stdbool.h - found
-- target architecture: x86_64
-- Performing Test CXX_FLAG_CXX11
-- Performing Test CXX_FLAG_CXX11 - Success
-- target architecture: x86_64
-- target architecture: x86_64
-- target architecture: x86_64
-- Found Git: /usr/local/bin/git (found version "2.54.0")
-- target architecture: x86_64
-- ADUC_IOT_HUB_PROTOCOL: IotHub_Protocol_from_Config
-- target architecture: x86_64
-- target architecture: x86_64
-- target architecture: x86_64
-- target architecture: x86_64
-- target architecture: x86_64
-- target architecture: x86_64
-- target architecture: x86_64
-- target architecture: x86_64
-- target architecture: x86_64
-- target architecture: x86_64
-- target architecture: x86_64
-- target architecture: x86_64
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Failed
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE
-- Found CURL: /usr/lib/x86_64-linux-gnu/libcurl.so (found suitable version "7.74.0", minimum required is "7.44")
-- Found OpenSSL: /usr/lib/x86_64-linux-gnu/libcrypto.so (found version "1.1.1w")
-- Found LibXml2: /usr/lib/x86_64-linux-gnu/libxml2.so (found version "2.9.10")
-- Found CURL: /usr/lib/x86_64-linux-gnu/libcurl.so (found version "7.74.0")
-- target architecture: x86_64
-- Skipping Microsoft Delta Download Handler (ADUC_BUILD_DELTA_HANDLER is OFF)
-- target architecture: x86_64
-- target architecture: x86_64
-- target architecture: x86_64
-- ADUC_ENABLE_E2E_TESTING="false"
-- target architecture: x86_64
-- target architecture: x86_64
-- target architecture: x86_64
-- target architecture: x86_64
-- target architecture: x86_64
-- target architecture: x86_64
-- target architecture: x86_64
-- target architecture: x86_64
-- target architecture: x86_64
-- target architecture: x86_64
-- target architecture: x86_64
-- target architecture: x86_64
-- target architecture: x86_64
-- target architecture: x86_64
-- target architecture: x86_64
-- target architecture: x86_64
-- target architecture: x86_64
-- target architecture: x86_64
-- target architecture: x86_64
-- target architecture: x86_64
-- target architecture: x86_64
-- target architecture: x86_64
-- Configuring done
-- Generating done
-- Build files have been written to: /workspaces/iot-hub-device-update/out
[1/161] Building C object src/agent/shutdown_service/CMakeFiles/shutdown_service.dir/src/shutdown_service.c.o
[2/161] Building C object src/agent/adu_core_export_helpers/CMakeFiles/adu_core_export_helpers.dir/src/adu_core_export_helpers.c.o
[3/161] Building C object src/agent/command_helper/CMakeFiles/command_helper.dir/src/command_helper.c.o
[4/161] Building C object src/agent_orchestration/CMakeFiles/agent_orchestration.dir/src/agent_orchestration.c.o
[5/161] Building C object src/agent/adu_core_interface/CMakeFiles/adu_core_interface.dir/src/startup_msg_helper.c.o
[6/161] Building C object src/agent/adu_core_interface/CMakeFiles/adu_core_interface.dir/src/device_properties.c.o
[7/161] Building C object src/agent/pnp_helper/CMakeFiles/pnp_helper.dir/src/pnp_protocol.c.o
[8/161] Building C object src/adu_types/CMakeFiles/adu_types.dir/src/adu_types.c.o
[9/161] Building C object src/agent/api/CMakeFiles/apisvc.dir/src/apisvc.c.o
[10/161] Building C object src/agent/CMakeFiles/AducIotAgent.dir/src/main.c.o
[11/161] Building C object src/agent/adu_core_interface/CMakeFiles/adu_core_interface.dir/src/adu_core_interface.c.o
[12/161] Building C object src/agent/device_info_interface/CMakeFiles/device_info_interface.dir/src/device_info_interface.c.o
[13/161] Building C object src/agent/CMakeFiles/AducIotAgent.dir/src/health_management.c.o
[14/161] Building C object src/communication_abstraction/CMakeFiles/communication_abstraction.dir/src/client_handle_helper.c.o
[15/161] Building C object src/diagnostics_component/diagnostics_devicename/CMakeFiles/diagnostics_devicename.dir/src/diagnostics_devicename.c.o
[16/161] Building C object src/diagnostics_component/diagnostics_workflow/CMakeFiles/diagnostics_workflow.dir/src/diagnostics_result.c.o
[17/161] Building C object src/communication_managers/iothub_communication_manager/CMakeFiles/iothub_communication_manager.dir/src/iothub_communication_manager.c.o
[18/161] Building C object src/diagnostics_component/utils/config_utils/CMakeFiles/diagnostics_config_utils.dir/src/diagnostics_config_utils.c.o
[19/161] Building C object src/diagnostics_component/diagnostics_workflow/CMakeFiles/diagnostics_workflow.dir/src/diagnostics_workflow.c.o
[20/161] Building C object src/diagnostics_component/diagnostics_interface/CMakeFiles/diagnostics_interface.dir/src/diagnostics_interface.c.o
[21/161] Building CXX object src/extensions/content_downloaders/curl_downloader/CMakeFiles/curl_content_downloader.dir/curl_content_downloader.EXPORTS.cpp.o
[22/161] Building C object src/diagnostics_component/utils/file_info_utils/CMakeFiles/file_info_utils.dir/src/file_info_utils.c.o
[23/161] Building C object src/diagnostics_component/utils/operation_id_utils/CMakeFiles/operation_id_utils.dir/src/operation_id_utils.c.o
[24/161] Building C object src/adu_workflow/CMakeFiles/agent_workflow.dir/src/agent_workflow.c.o
[25/161] Building CXX object src/adu-shell/CMakeFiles/adu-shell.dir/src/adushell_action.cpp.o
[26/161] Building CXX object src/extensions/component_enumerators/examples/contoso_component_enumerator/CMakeFiles/contoso_component_enumerator.dir/contoso_component_enumerator.cpp.o
[27/161] Building CXX object src/extensions/download_handlers/download_handler_plugin/CMakeFiles/download_handler_plugin.dir/src/download_handler_plugin.cpp.o
[28/161] Building CXX object src/extensions/download_handlers/download_handler_factory/CMakeFiles/download_handler_factory.dir/src/download_handler_factory.cpp.o
[29/161] Building CXX object src/extensions/update_manifest_handlers/steps_handler/CMakeFiles/microsoft_steps_1.dir/src/handler_create.cpp.o
[30/161] Building CXX object src/diagnostics_component/diagnostics_async_helper/CMakeFiles/diagnostics_async_helper.dir/src/diagnostics_async_helper.cpp.o
[31/161] Generating swupdate handler result codes header from /workspaces/iot-hub-device-update/src/extensions/step_handlers/swupdate_handler_v2/swupdate_handler_result_codes.json
No changes detected in /workspaces/iot-hub-device-update/src/extensions/step_handlers/swupdate_handler_v2/inc/aduc/swupdate_handler_result_codes.h, skipping write
Facility: ADUC_FACILITY_EXTENSION_UPDATE_CONTENT_HANDLER (0x3)
Component: ADUC_CONTENT_HANDLER_SWUPDATE (0x01)
Result codes: 36
[32/161] Building CXX object src/extensions/step_handlers/simulator_handler/CMakeFiles/microsoft_simulator_1.dir/src/simulator_handler.cpp.o
[33/161] Building CXX object src/adu-shell/CMakeFiles/adu-shell.dir/src/common_tasks.cpp.o
[34/161] Building CXX object src/adu-shell/CMakeFiles/adu-shell.dir/src/main.cpp.o
[35/161] Building CXX object src/adu-shell/CMakeFiles/adu-shell.dir/src/aptget_tasks.cpp.o
[36/161] Building C object src/logging/zlog/CMakeFiles/zlog.dir/src/init.c.o
[37/161] Building CXX object src/extensions/content_downloaders/curl_downloader/CMakeFiles/curl_content_downloader.dir/curl_content_downloader.cpp.o
[38/161] Building C object src/logging/zlog/CMakeFiles/zlog.dir/src/zlog.c.o
[39/161] Building CXX object src/extensions/step_handlers/apt_handler/CMakeFiles/microsoft_apt_1.dir/src/apt_parser.cpp.o
[40/161] Building CXX object src/adu-shell/CMakeFiles/adu-shell.dir/src/script_tasks.cpp.o
[41/161] Building CXX object src/extensions/step_handlers/swupdate_handler_v2/CMakeFiles/microsoft_swupdate_2.dir/src/handler_create.cpp.o
[42/161] Building C object src/utils/apiproto_utils/CMakeFiles/apiproto_utils.dir/src/apiproto.c.o
FAILED: src/utils/apiproto_utils/CMakeFiles/apiproto_utils.dir/src/apiproto.c.o
/usr/bin/gcc -DADUC_ENABLE_CONSOLE_LOG=1 -DADUC_ENABLE_FILE_LOG=1 -DADUC_LOG_FOLDER=\"/var/log/adu\" -DADUC_USE_ZLOGGING=1 -I/workspaces/iot-hub-device-update/src/utils/apiproto_utils/inc -I/workspaces/iot-hub-device-update/src/inc -I/workspaces/iot-hub-device-update/src/adu_types/inc -I/workspaces/iot-hub-device-update/src/sdk/inc -I/workspaces/iot-hub-device-update/src/utils/c_utils/inc -I/workspaces/iot-hub-device-update/src/logging/inc -I/workspaces/iot-hub-device-update/src/logging/zlog/inc -Werror -D_FILE_OFFSET_BITS=64 -fPIE -D_FORTIFY_SOURCE=2 -fstack-protector-strong -Wformat -Werror=format-security -Wconversion -Wall -g -std=gnu99 -MD -MT src/utils/apiproto_utils/CMakeFiles/apiproto_utils.dir/src/apiproto.c.o -MF src/utils/apiproto_utils/CMakeFiles/apiproto_utils.dir/src/apiproto.c.o.d -o src/utils/apiproto_utils/CMakeFiles/apiproto_utils.dir/src/apiproto.c.o -c /workspaces/iot-hub-device-update/src/utils/apiproto_utils/src/apiproto.c
/workspaces/iot-hub-device-update/src/utils/apiproto_utils/src/apiproto.c: In function ‘msg_send_req’:
/workspaces/iot-hub-device-update/src/utils/apiproto_utils/src/apiproto.c:76:37: error: conversion to ‘long unsigned int’ from ‘ssize_t’ {aka ‘long int’} may change the sign of the result [-Werror=sign-conversion]
76 | return sizeof(uint16_t) * 3 + nbw;
| ^
/workspaces/iot-hub-device-update/src/utils/apiproto_utils/src/apiproto.c:76:37: error: conversion to ‘ssize_t’ {aka ‘long int’} from ‘long unsigned int’ may change the sign of the result [-Werror=sign-conversion]
76 | return sizeof(uint16_t) * 3 + nbw;
| ~~~~~~~~~~~~~~~~~~~~~^~~~~
/workspaces/iot-hub-device-update/src/utils/apiproto_utils/src/apiproto.c: In function ‘msg_recv_req’:
/workspaces/iot-hub-device-update/src/utils/apiproto_utils/src/apiproto.c:145:76: error: conversion to ‘long unsigned int’ from ‘ssize_t’ {aka ‘long int’} may change the sign of the result [-Werror=sign-conversion]
145 | br = read(fd, ((char*)header_buf) + bytes_read_total, (MSG_HDR_LEN)-bytes_read_total);
| ^
/workspaces/iot-hub-device-update/src/utils/apiproto_utils/src/apiproto.c: In function ‘msg_recv_resp’:
/workspaces/iot-hub-device-update/src/utils/apiproto_utils/src/apiproto.c:288:83: error: conversion to ‘long unsigned int’ from ‘ssize_t’ {aka ‘long int’} may change the sign of the result [-Werror=sign-conversion]
288 | bytes_read = read(fd, read_buf + total_bytes_read, RESP_MSG_READ_BUF_SIZE - total_bytes_read);
| ^
cc1: all warnings being treated as errors
[43/161] Building CXX object src/extensions/shared_lib/CMakeFiles/shared_lib.dir/src/shared_lib.cpp.o
[44/161] Building C object src/sdk/CMakeFiles/aducsdk.dir/src/aducsdk.c.o
[45/161] Building C object src/sdk/CMakeFiles/aducsdk.dir/__/utils/apiproto_utils/src/apiproto.c.o
FAILED: src/sdk/CMakeFiles/aducsdk.dir/__/utils/apiproto_utils/src/apiproto.c.o
/usr/bin/gcc -DADUC_APIPROTO_NO_LOGGING=1 -DADUC_API_DEFAULT_FIFO_PATH=\"/var/lib/adu/api/apireq.fifo\" -DADUC_DATA_FOLDER=\"/var/lib/adu\" -DADUC_ENABLE_CONSOLE_LOG=1 -DADUC_ENABLE_FILE_LOG=1 -DADUC_LOG_FOLDER=\"/var/log/adu\" -I/workspaces/iot-hub-device-update/src/sdk/inc -I/workspaces/iot-hub-device-update/src/utils/apiproto_utils/inc -I/workspaces/iot-hub-device-update/src/utils/c_utils/inc -I/workspaces/iot-hub-device-update/src/inc -I/workspaces/iot-hub-device-update/src/adu_types/inc -Werror -D_FILE_OFFSET_BITS=64 -fPIE -D_FORTIFY_SOURCE=2 -fstack-protector-strong -Wformat -Werror=format-security -Wconversion -Wall -g -std=gnu99 -MD -MT src/sdk/CMakeFiles/aducsdk.dir/__/utils/apiproto_utils/src/apiproto.c.o -MF src/sdk/CMakeFiles/aducsdk.dir/__/utils/apiproto_utils/src/apiproto.c.o.d -o src/sdk/CMakeFiles/aducsdk.dir/__/utils/apiproto_utils/src/apiproto.c.o -c /workspaces/iot-hub-device-update/src/utils/apiproto_utils/src/apiproto.c
/workspaces/iot-hub-device-update/src/utils/apiproto_utils/src/apiproto.c: In function ‘msg_send_req’:
/workspaces/iot-hub-device-update/src/utils/apiproto_utils/src/apiproto.c:76:37: error: conversion to ‘long unsigned int’ from ‘ssize_t’ {aka ‘long int’} may change the sign of the result [-Werror=sign-conversion]
76 | return sizeof(uint16_t) * 3 + nbw;
| ^
/workspaces/iot-hub-device-update/src/utils/apiproto_utils/src/apiproto.c:76:37: error: conversion to ‘ssize_t’ {aka ‘long int’} from ‘long unsigned int’ may change the sign of the result [-Werror=sign-conversion]
76 | return sizeof(uint16_t) * 3 + nbw;
| ~~~~~~~~~~~~~~~~~~~~~^~~~~
/workspaces/iot-hub-device-update/src/utils/apiproto_utils/src/apiproto.c: In function ‘msg_recv_req’:
/workspaces/iot-hub-device-update/src/utils/apiproto_utils/src/apiproto.c:145:76: error: conversion to ‘long unsigned int’ from ‘ssize_t’ {aka ‘long int’} may change the sign of the result [-Werror=sign-conversion]
145 | br = read(fd, ((char*)header_buf) + bytes_read_total, (MSG_HDR_LEN)-bytes_read_total);
| ^
/workspaces/iot-hub-device-update/src/utils/apiproto_utils/src/apiproto.c: In function ‘msg_recv_resp’:
/workspaces/iot-hub-device-update/src/utils/apiproto_utils/src/apiproto.c:288:83: error: conversion to ‘long unsigned int’ from ‘ssize_t’ {aka ‘long int’} may change the sign of the result [-Werror=sign-conversion]
288 | bytes_read = read(fd, read_buf + total_bytes_read, RESP_MSG_READ_BUF_SIZE - total_bytes_read);
| ^
cc1: all warnings being treated as errors
[46/161] Building C object src/rootkey_workflow/CMakeFiles/rootkey_workflow.dir/src/rootkey_workflow.c.o
[47/161] Building CXX object src/diagnostics_component/utils/file_upload_utils/CMakeFiles/file_upload_utility.dir/src/file_upload_utility.cpp.o
[48/161] Building CXX object src/extensions/extension_manager/CMakeFiles/extension_manager.dir/src/extension_manager.cpp.o
[49/161] Building CXX object src/extensions/extension_manager/CMakeFiles/extension_manager.dir/src/extension_manager_helper.cpp.o
[50/161] Building CXX object src/extensions/step_handlers/apt_handler/CMakeFiles/microsoft_apt_1.dir/src/apt_handler.cpp.o
[51/161] Building CXX object src/extensions/update_manifest_handlers/steps_handler/CMakeFiles/microsoft_steps_1.dir/src/steps_handler.cpp.o
[52/161] Building CXX object src/extensions/step_handlers/script_handler/CMakeFiles/microsoft_script_1.dir/src/script_handler.cpp.o
[53/161] Building CXX object src/platform_layers/linux_platform_layer/CMakeFiles/linux_platform_layer.dir/src/linux_device_info_exports.cpp.o
[54/161] Building CXX object src/platform_layers/linux_platform_layer/CMakeFiles/linux_platform_layer.dir/src/linux_adu_core_exports.cpp.o
[55/161] Building CXX object src/diagnostics_component/utils/file_upload_utils/CMakeFiles/file_upload_utility.dir/src/blob_storage_helper.cpp.o
[56/161] Building CXX object src/platform_layers/linux_platform_layer/CMakeFiles/linux_platform_layer.dir/src/linux_adu_core_impl.cpp.o
[57/161] Building CXX object src/extensions/step_handlers/swupdate_handler_v2/CMakeFiles/microsoft_swupdate_2.dir/src/swupdate_handler_v2.cpp.o
ninja: build stopped: subcommand failed.
Expected Behavior
Build without warnings.
Current Behavior
Warnings in
src/utils/apiproto_utils/src/apiproto.cSteps to Reproduce
Provide a detailed set of steps to reproduce the bug.
scripts/build.sh -c --work-folder .If you use
-uor--build-unit-teststhe error disappears because the flag-Wconversionis not set:iot-hub-device-update/src/CMakeLists.txt
Lines 60 to 62 in d296854
Device Information
1.3.1, 1.4.0
Logs