mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-25 07:03:33 +08:00
clang-tidy: partially fix cppcoreguidelines-pro-type-reinterpret-cast
This commit is contained in:
@@ -301,7 +301,7 @@ ADIS16477::stop()
|
||||
int
|
||||
ADIS16477::data_ready_interrupt(int irq, void *context, void *arg)
|
||||
{
|
||||
ADIS16477 *dev = reinterpret_cast<ADIS16477 *>(arg);
|
||||
ADIS16477 *dev = static_cast<ADIS16477 *>(arg);
|
||||
|
||||
// make another measurement
|
||||
dev->ScheduleNow();
|
||||
|
||||
@@ -364,7 +364,7 @@ ADIS16497::stop()
|
||||
int
|
||||
ADIS16497::data_ready_interrupt(int irq, void *context, void *arg)
|
||||
{
|
||||
ADIS16497 *dev = reinterpret_cast<ADIS16497 *>(arg);
|
||||
ADIS16497 *dev = static_cast<ADIS16497 *>(arg);
|
||||
|
||||
// make another measurement
|
||||
dev->ScheduleNow();
|
||||
|
||||
@@ -286,7 +286,7 @@ BMI088_gyro::Run()
|
||||
void
|
||||
BMI088_gyro::measure_trampoline(void *arg)
|
||||
{
|
||||
BMI088_gyro *dev = reinterpret_cast<BMI088_gyro *>(arg);
|
||||
BMI088_gyro *dev = static_cast<BMI088_gyro *>(arg);
|
||||
|
||||
/* make another measurement */
|
||||
dev->measure();
|
||||
|
||||
Reference in New Issue
Block a user