mirror of
https://github.com/okalachev/flix.git
synced 2025-07-27 01:29:33 +00:00
Get rid of simulator build warnings
This commit is contained in:
parent
8a83d70bb6
commit
378db51de9
@ -117,7 +117,7 @@ public:
|
||||
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;
|
||||
}
|
||||
|
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user