[bug report] EXTI IRQ erroneously enabled when initializing in separate .h/.c files
STM32CubeMX version: 6.10.0
Firmware version: STM32Cube FW_G4 V1.5.1
I have configured a GPIO pin as EXTI and configured that the interrupt should not be enabled when initializing the GPIO, (i.e. removed the check mark from "Generate Enable in Init").

If the initialization code is generated in main.c, the interrupt is not enabled (as expected).
// In main.c
static void MX_GPIO_Init(void)
{
/* ... */
/* EXTI interrupt init*/
HAL_NVIC_SetPriority(EXTI0_IRQn, 5, 0);
/* ... */
}
However, if the initialization code is generated in separate .h/.c files, the interrupt is erroneously generated.

// In gpio.c
void MX_GPIO_Init(void)
{
/* ... */
/* EXTI interrupt init*/
HAL_NVIC_SetPriority(EXTI0_IRQn, 5, 0);
HAL_NVIC_EnableIRQ(EXTI0_IRQn);
/* ... */
}