mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-12 19:10:32 +03:00
Added missing GCC diagnostic push pragma (#14397)
Replaced faulty #pragma GCC diagnostic ignored "-Wunused-function" with the more elegant MAYBE_UNUSED macro
This commit is contained in:
parent
51c8296f25
commit
b03b57bd90
1 changed files with 1 additions and 4 deletions
|
@ -343,16 +343,13 @@ static void mspFcSetPassthroughCommand(sbuf_t *dst, sbuf_t *src, mspPostProcessF
|
|||
}
|
||||
}
|
||||
|
||||
// TODO: Remove the pragma once this is called from unconditional code
|
||||
#pragma GCC diagnostic ignored "-Wunused-function"
|
||||
static void configRebootUpdateCheckU8(uint8_t *parm, uint8_t value)
|
||||
MAYBE_UNUSED static void configRebootUpdateCheckU8(uint8_t *parm, uint8_t value)
|
||||
{
|
||||
if (*parm != value) {
|
||||
setRebootRequired();
|
||||
}
|
||||
*parm = value;
|
||||
}
|
||||
#pragma GCC diagnostic pop
|
||||
|
||||
static void mspRebootFn(serialPort_t *serialPort)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue