Skip to content

Commit 4b3e353

Browse files
committed
Fix compilation warnings
1 parent bb71e4d commit 4b3e353

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/PCM.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -238,6 +238,7 @@ int PCMClass::Stop()
238238

239239
__attribute__((weak)) int pcm_lowlevel_init(uint32_t sampleRate)
240240
{
241+
(void)sampleRate;
241242
return PCM_ERROR;
242243
}
243244

src/pcm_lowlevel_u585ai.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ int pcm_lowlevel_stop()
159159
ret = PCM_ERROR;
160160
}
161161

162-
return PCM_OK;
162+
return ret;
163163
}
164164

165165
/**
@@ -232,7 +232,8 @@ void HAL_MDF_MspInit(MDF_HandleTypeDef *hmdf)
232232

233233
if (hmdf->Instance == DMIC_ONBOARD_FILTER) {
234234
/** Initializes the peripherals clock */
235-
RCC_PeriphCLKInitTypeDef PeriphClkInit = {0};
235+
RCC_PeriphCLKInitTypeDef PeriphClkInit;
236+
memset(&PeriphClkInit, 0x0, sizeof(RCC_PeriphCLKInitTypeDef));
236237
PeriphClkInit.PeriphClockSelection = RCC_PERIPHCLK_ADF1;
237238
PeriphClkInit.Adf1ClockSelection = RCC_ADF1CLKSOURCE_PLL3;
238239
PeriphClkInit.PLL3.PLL3Source = RCC_PLLSOURCE_HSE;

0 commit comments

Comments
 (0)