Skip to contentSkip to conversation

voicecall: Fix implicit-function-declaration fatal error with GCC-14

PATCH Applied saravanan.s 2 participants 2 messages Jan 22, 2025 – Feb 5, 2025

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 voicecall: Fix implicit-function-declaration fatal error with GCC-14

Address below issue by adding missing header:
ofono-2.4/drivers/hfpmodem/voicecall.c:1081:17:
error: implicit declaration of function 'usleep'; did you mean 'g_usleep'? [-Wimplicit-function-declaration]

---
 drivers/hfpmodem/voicecall.c | 1 +
 1 file changed, 1 insertion(+)
drivers/hfpmodem/voicecall.c +1 -0
index 5a84db78..949337dc 100644
@@ -12,6 +12,7 @@
 #include <string.h>
 #include <stdlib.h>
 #include <stdio.h>
+#include <unistd.h>
 
 #include <glib.h>
 #include <gatchat.h>
#1 lore raw
This patch was applied to ofono.git (master) by Denis Kenzior <[email protected]>:

Hello:

This patch was applied to ofono.git (master)
by Denis Kenzior <[email protected]>:

Quoted 7 lines · On Wed, 22 Jan 2025 17:43:14 +0530 you wrote:

Address below issue by adding missing header:
ofono-2.4/drivers/hfpmodem/voicecall.c:1081:17:
error: implicit declaration of function 'usleep'; did you mean 'g_usleep'? [-Wimplicit-function-declaration]

---
 drivers/hfpmodem/voicecall.c | 1 +
 1 file changed, 1 insertion(+)

Here is the summary with links:
- voicecall: Fix implicit-function-declaration fatal error with GCC-14

    https://git.kernel.org/pub/scm/network/ofono/ofono.git/?id=1545c21c6162

You are awesome, thank you!

Signature · 2 lines
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html