Fixed compilation errors with GCC 15.1

This commit is contained in:
Silvano Seva 2025-07-08 21:17:33 +02:00
parent 0962b533c7
commit 280d5ad350
6 changed files with 10 additions and 6 deletions

View File

@ -34,6 +34,6 @@ void openrtx_init();
* This function returns only on linux emulator, when the main program terminates. * This function returns only on linux emulator, when the main program terminates.
* Return type is void* to make this function be used as a pthread thread body. * Return type is void* to make this function be used as a pthread thread body.
*/ */
void *openrtx_run(); void *openrtx_run(void *arg);
#endif /* OPENRTX_H */ #endif /* OPENRTX_H */

View File

@ -81,8 +81,10 @@ void openrtx_init()
#endif #endif
} }
void *openrtx_run() void *openrtx_run(void *arg)
{ {
(void) arg;
state.devStatus = RUNNING; state.devStatus = RUNNING;
// Start the OpenRTX threads // Start the OpenRTX threads

View File

@ -47,7 +47,7 @@ int main(void)
openrtx_init(); openrtx_init();
#ifndef PLATFORM_LINUX #ifndef PLATFORM_LINUX
openrtx_run(); openrtx_run(NULL);
#else #else
// macOS requires SDL main loop to run on the main thread. // macOS requires SDL main loop to run on the main thread.
// Here we create a new thread for OpenRTX main program and utilize the main // Here we create a new thread for OpenRTX main program and utilize the main

View File

@ -106,7 +106,7 @@ extern void _ui_drawMenuBackupRestore(ui_state_t* ui_state);
extern void _ui_drawMenuBackup(ui_state_t* ui_state); extern void _ui_drawMenuBackup(ui_state_t* ui_state);
extern void _ui_drawMenuRestore(ui_state_t* ui_state); extern void _ui_drawMenuRestore(ui_state_t* ui_state);
extern void _ui_drawMenuInfo(ui_state_t* ui_state); extern void _ui_drawMenuInfo(ui_state_t* ui_state);
extern void _ui_drawMenuAbout(); extern void _ui_drawMenuAbout(ui_state_t* ui_state);
#ifdef CONFIG_RTC #ifdef CONFIG_RTC
extern void _ui_drawSettingsTimeDate(); extern void _ui_drawSettingsTimeDate();
extern void _ui_drawSettingsTimeDateSet(ui_state_t* ui_state); extern void _ui_drawSettingsTimeDateSet(ui_state_t* ui_state);

View File

@ -50,7 +50,7 @@ extern void _ui_drawSettingsGPS(ui_state_t* ui_state);
#endif #endif
extern void _ui_drawMenuSettings(ui_state_t* ui_state); extern void _ui_drawMenuSettings(ui_state_t* ui_state);
extern void _ui_drawMenuInfo(ui_state_t* ui_state); extern void _ui_drawMenuInfo(ui_state_t* ui_state);
extern void _ui_drawMenuAbout(); extern void _ui_drawMenuAbout(ui_state_t* ui_state);
#ifdef CONFIG_RTC #ifdef CONFIG_RTC
extern void _ui_drawSettingsTimeDate(); extern void _ui_drawSettingsTimeDate();
extern void _ui_drawSettingsTimeDateSet(ui_state_t* ui_state); extern void _ui_drawSettingsTimeDateSet(ui_state_t* ui_state);

View File

@ -477,8 +477,10 @@ static int process_line(char *line)
} }
} }
void *startCLIMenu() void *startCLIMenu(void *arg)
{ {
(void) arg;
printf("\n\n"); printf("\n\n");
char *histfile = ".emulatorsh_history"; char *histfile = ".emulatorsh_history";
shell_help(NULL, 0, NULL); shell_help(NULL, 0, NULL);