mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-21 17:03:35 +08:00
drivers/ins/vectornav: comment out redefined and remove -Wno-error
This commit is contained in:
@@ -39,7 +39,6 @@ px4_add_module(
|
|||||||
INCLUDES
|
INCLUDES
|
||||||
libvnc/include
|
libvnc/include
|
||||||
COMPILE_FLAGS
|
COMPILE_FLAGS
|
||||||
-Wno-error
|
|
||||||
SRCS
|
SRCS
|
||||||
VectorNav.cpp
|
VectorNav.cpp
|
||||||
VectorNav.hpp
|
VectorNav.hpp
|
||||||
|
|||||||
@@ -56,7 +56,6 @@ add_library(libvnc ${SOURCES})
|
|||||||
add_dependencies(libvnc prebuild_targets)
|
add_dependencies(libvnc prebuild_targets)
|
||||||
target_compile_options(libvnc
|
target_compile_options(libvnc
|
||||||
PRIVATE
|
PRIVATE
|
||||||
-Wno-error
|
|
||||||
-Wno-double-promotion
|
-Wno-double-promotion
|
||||||
-Wno-pointer-sign
|
-Wno-pointer-sign
|
||||||
-Wno-cast-align
|
-Wno-cast-align
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include "vn/util.h"
|
#include "vn/util.h"
|
||||||
|
|
||||||
#define UNUSED(x) (void)(sizeof(x))
|
//#define UNUSED(x) (void)(sizeof(x))
|
||||||
|
|
||||||
VnError VnSpi_genGenericCommand(
|
VnError VnSpi_genGenericCommand(
|
||||||
char cmdId,
|
char cmdId,
|
||||||
|
|||||||
@@ -9,7 +9,7 @@
|
|||||||
|
|
||||||
#include "vn/xplat/time.h"
|
#include "vn/xplat/time.h"
|
||||||
|
|
||||||
#define UNUSED(x) (void)(sizeof(x))
|
//#define UNUSED(x) (void)(sizeof(x))
|
||||||
|
|
||||||
#define DEFAULT_RESPONSE_TIMEOUT_MS 500
|
#define DEFAULT_RESPONSE_TIMEOUT_MS 500
|
||||||
#define DEFAULT_RETRANSMIT_DELAY_MS 200
|
#define DEFAULT_RETRANSMIT_DELAY_MS 200
|
||||||
|
|||||||
Reference in New Issue
Block a user