Skip to content

Commit

Permalink
Fix a couple of warnings / Pi issues.
Browse files Browse the repository at this point in the history
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
  • Loading branch information
audetto committed Dec 18, 2021
1 parent 86122aa commit d6aa407
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Expand Up @@ -21,7 +21,7 @@ set(CMAKE_CXX_STANDARD_REQUIRED ON)
add_compile_options(-Werror=return-type)

if (CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
add_compile_options(-Werror=format -Wno-error=format-overflow -Wno-error=format-truncation)
add_compile_options(-Werror=format -Wno-error=format-overflow -Wno-error=format-truncation -Wno-psabi)
endif()

MESSAGE("CMAKE_BUILD_TYPE: ${CMAKE_BUILD_TYPE}")
Expand Down
2 changes: 1 addition & 1 deletion source/linux/libwindows/winuser.cpp
Expand Up @@ -14,7 +14,7 @@ HCURSOR SetCursor(HCURSOR hCursor)

UINT_PTR SetTimer(HWND,UINT_PTR,UINT,TIMERPROC)
{
return NULL;
return 0;
}

BOOL KillTimer(HWND hWnd, UINT uIDEvent)
Expand Down
6 changes: 3 additions & 3 deletions source/linux/network/uthernet2.cpp
Expand Up @@ -367,11 +367,11 @@ void Uthernet2::receiveOnePacketMacRaw(const size_t i)
{
BYTE buffer[MAX_RXLENGTH];
int len;
if (tfeReceiveOnePacket(memory.data() + SHAR0, sizeof(buffer), buffer, len))
if (tfeReceiveOnePacket(myMemory.data() + SHAR0, sizeof(buffer), buffer, len))
{
if (isThereRoomFor(i, len, sizeof(uint16_t)))
if (socket.isThereRoomFor(len, sizeof(uint16_t)))
{
writeDataMacRaw(i, buffer, len);
writeDataMacRaw(socket, myMemory, buffer, len);
#ifdef U2_LOG_TRAFFIC
LogFileOutput("U2: READ MACRAW[%d]: +%d -> %d bytes\n", i, len, socket.sn_rx_rsr);
#endif
Expand Down

0 comments on commit d6aa407

Please sign in to comment.