Skip to content

Commit

Permalink
Prevent empty translation unit when no FMPI2C exists.
Browse files Browse the repository at this point in the history
  • Loading branch information
michael-hillmann committed Aug 13, 2022
1 parent 258b6b9 commit ec2f315
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_ll_fmpi2c.c
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,12 @@ void LL_FMPI2C_StructInit(LL_FMPI2C_InitTypeDef *FMPI2C_InitStruct)
/**
* @}
*/
#else

/* Prevent empty translation unit when no FMPI2C exists.
* "error: ISO C forbids an empty translation unit [-Werror=pedantic]"
*/
void Empty_STM32F4xx_II_FMPI2C_C(void) {;}

#endif /* FMPI2C_CR1_PE */
#endif /* USE_FULL_LL_DRIVER */

0 comments on commit ec2f315

Please sign in to comment.