i2c: Fix unused warning

Fixes unused warning from gcc. Alternatively this could use a `(void)tmpreg;`
statement.
This commit is contained in:
Chris
2022-09-18 04:10:23 -04:00
parent c2ac620686
commit d6d008bcad

View File

@@ -65,7 +65,7 @@ void I2Cx_Init(i2c_type *I2Cx, uint32_t baudRate)
void I2Cx_ClearADDRFlag(i2c_type* I2Cx) void I2Cx_ClearADDRFlag(i2c_type* I2Cx)
{ {
__IO uint32_t tmpreg; __attribute__((unused)) __IO uint32_t tmpreg;
tmpreg = I2Cx->sts1; tmpreg = I2Cx->sts1;