Skip to content

Commit

Permalink
AP_Baro: To prevent incorrect warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
muramura committed Oct 6, 2024
1 parent be1c87f commit 5d08f88
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion libraries/AP_Baro/AP_Baro_BMP388.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,8 @@ bool AP_Baro_BMP388::init()
}



#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wdangling-pointer"
// accumulate a new sensor reading
void AP_Baro_BMP388::timer(void)
{
Expand All @@ -150,6 +151,7 @@ void AP_Baro_BMP388::timer(void)

dev->check_next_register();
}
#pragma GCC diagnostic pop

// transfer data to the frontend
void AP_Baro_BMP388::update(void)
Expand Down

0 comments on commit 5d08f88

Please sign in to comment.