mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-25 03:13:34 +08:00
More warnings
This commit is contained in:
@@ -101,7 +101,8 @@ if (DEBUG_BUILD)
|
|||||||
message(STATUS "Debug build (note: requires gtest)")
|
message(STATUS "Debug build (note: requires gtest)")
|
||||||
|
|
||||||
if (COMPILER_IS_GCC_COMPATIBLE)
|
if (COMPILER_IS_GCC_COMPATIBLE)
|
||||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Wextra -Werror -pedantic -Wfloat-equal -Wconversion -Wsign-conversion")
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Wextra -Werror -pedantic -Wfloat-equal -Wconversion")
|
||||||
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wsign-conversion -Wcast-align -Wmissing-declarations")
|
||||||
set(cpp03_flags "-std=c++03 -Wno-variadic-macros -Wno-long-long")
|
set(cpp03_flags "-std=c++03 -Wno-variadic-macros -Wno-long-long")
|
||||||
set(optim_flags "-O3 -DNDEBUG -g0")
|
set(optim_flags "-O3 -DNDEBUG -g0")
|
||||||
else ()
|
else ()
|
||||||
|
|||||||
@@ -15,6 +15,10 @@
|
|||||||
#include <uavcan/marshal/type_util.hpp>
|
#include <uavcan/marshal/type_util.hpp>
|
||||||
#include <uavcan/marshal/integer_spec.hpp>
|
#include <uavcan/marshal/integer_spec.hpp>
|
||||||
|
|
||||||
|
#ifndef UAVCAN_CPP_VERSION
|
||||||
|
# error UAVCAN_CPP_VERSION
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifndef UAVCAN_EXCEPTIONS
|
#ifndef UAVCAN_EXCEPTIONS
|
||||||
# error UAVCAN_EXCEPTIONS
|
# error UAVCAN_EXCEPTIONS
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
@@ -1,8 +1,10 @@
|
|||||||
/*
|
/*
|
||||||
* Fast bit array copy algorithm.
|
* Fast bit array copy algorithm.
|
||||||
* Source: http://stackoverflow.com/questions/3534535/whats-a-time-efficient-algorithm-to-copy-unaligned-bit-arrays
|
* Source: http://stackoverflow.com/questions/3534535/whats-a-time-efficient-algorithm-to-copy-unaligned-bit-arrays
|
||||||
|
* Pavel Kirienko <pavel.kirienko@gmail.com>
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include <uavcan/marshal/bit_stream.hpp>
|
||||||
#include <climits>
|
#include <climits>
|
||||||
#include <cstring>
|
#include <cstring>
|
||||||
#include <cstddef>
|
#include <cstddef>
|
||||||
|
|||||||
Reference in New Issue
Block a user