Skip to content

fix: mxchip az3166 compilation errors #407

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions MXChip/AZ3166/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,14 @@ project(mxchip_azure_iot C CXX ASM)
# Disable common networking component, MXCHIP has it's own
set(DISABLE_COMMON_NETWORK true)

# Remove -Werror if it's already set, then apply our compile options
if(CMAKE_CXX_FLAGS MATCHES "-Werror")
string(REPLACE "-Werror" "" CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS}")
endif()

# Add compile options to disable the misleading indentation warning
add_compile_options(-Wno-misleading-indentation)

add_subdirectory(${SHARED_SRC_DIR} shared_src)
add_subdirectory(lib)
add_subdirectory(app)
8 changes: 4 additions & 4 deletions MXChip/AZ3166/app/wwd_networking.c
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,10 @@ static void print_address(CHAR* preable, ULONG address)
{
printf("\t%s: %d.%d.%d.%d\r\n",
preable,
(u_int8_t)(address >> 24),
(u_int8_t)(address >> 16 & 0xFF),
(u_int8_t)(address >> 8 & 0xFF),
(u_int8_t)(address & 0xFF));
(uint8_t)(address >> 24),
(uint8_t)(address >> 16 & 0xFF),
(uint8_t)(address >> 8 & 0xFF),
(uint8_t)(address & 0xFF));
}

/* Join Network. */
Expand Down