Skip to content

Commit

Permalink
Get rid of simulator build warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
okalachev committed Oct 24, 2024
1 parent 8a83d70 commit 378db51
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion gazebo/Arduino.h
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ class HardwareSerial: public Print {
int read() {
if (available()) {
char c;
::read(STDIN_FILENO, &c, 1); // use raw read to avoid C++ buffering
size_t res = ::read(STDIN_FILENO, &c, 1); // use raw read to avoid C++ buffering
// https://stackoverflow.com/questions/45238997/does-getchar-function-has-its-own-buffer-to-store-remaining-input
return c;
}
Expand Down
1 change: 1 addition & 0 deletions gazebo/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ set(CMAKE_BUILD_TYPE RelWithDebInfo)
add_library(flix SHARED simulator.cpp)
target_link_libraries(flix ${GAZEBO_LIBRARIES} ${SDL2_LIBRARIES})
target_include_directories(flix PUBLIC ${CMAKE_CURRENT_SOURCE_DIR})
target_compile_options(flix PRIVATE -Wno-address-of-packed-member) # disable unneeded mavlink warnings

# Include dir for MAVLink-Arduino library
target_include_directories(flix PUBLIC $ENV{HOME}/Arduino/libraries/MAVLink)
Expand Down

0 comments on commit 378db51

Please sign in to comment.