drivers/ins/vectornav: comment out redefined and remove -Wno-error

This commit is contained in:
Daniel Agar
2023-04-06 14:06:57 -04:00
parent cbc067f235
commit 0fa0e2f583
4 changed files with 167 additions and 169 deletions
-1
View File
@@ -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