tools: Mass fixing of empty prototypes (for -Wstrict-prototypes)
This commit is contained in:
@@ -69,7 +69,7 @@ static void esp_dbg_stubs_data_free(void *addr)
|
||||
ESP_LOGV(TAG, "%s EXIT %p", __func__, addr);
|
||||
}
|
||||
|
||||
void esp_dbg_stubs_init()
|
||||
void esp_dbg_stubs_init(void)
|
||||
{
|
||||
s_dbg_stubs_ctl_data.tramp_addr = (uint32_t)s_stub_code_buf;
|
||||
s_dbg_stubs_ctl_data.min_stack_addr = (uint32_t)s_stub_min_stack;
|
||||
|
||||
@@ -60,12 +60,12 @@ struct esp_timer {
|
||||
LIST_ENTRY(esp_timer) list_entry;
|
||||
};
|
||||
|
||||
static bool is_initialized();
|
||||
static bool is_initialized(void);
|
||||
static esp_err_t timer_insert(esp_timer_handle_t timer);
|
||||
static esp_err_t timer_remove(esp_timer_handle_t timer);
|
||||
static bool timer_armed(esp_timer_handle_t timer);
|
||||
static void timer_list_lock();
|
||||
static void timer_list_unlock();
|
||||
static void timer_list_lock(void);
|
||||
static void timer_list_unlock(void);
|
||||
|
||||
#if WITH_PROFILING
|
||||
static void timer_insert_inactive(esp_timer_handle_t timer);
|
||||
@@ -247,12 +247,12 @@ static IRAM_ATTR bool timer_armed(esp_timer_handle_t timer)
|
||||
return timer->alarm > 0;
|
||||
}
|
||||
|
||||
static IRAM_ATTR void timer_list_lock()
|
||||
static IRAM_ATTR void timer_list_lock(void)
|
||||
{
|
||||
portENTER_CRITICAL(&s_timer_lock);
|
||||
}
|
||||
|
||||
static IRAM_ATTR void timer_list_unlock()
|
||||
static IRAM_ATTR void timer_list_unlock(void)
|
||||
{
|
||||
portEXIT_CRITICAL(&s_timer_lock);
|
||||
}
|
||||
@@ -323,7 +323,7 @@ static void IRAM_ATTR timer_alarm_handler(void* arg)
|
||||
}
|
||||
}
|
||||
|
||||
static IRAM_ATTR bool is_initialized()
|
||||
static IRAM_ATTR bool is_initialized(void)
|
||||
{
|
||||
return s_timer_task != NULL;
|
||||
}
|
||||
@@ -474,7 +474,7 @@ esp_err_t esp_timer_dump(FILE* stream)
|
||||
return ESP_OK;
|
||||
}
|
||||
|
||||
int64_t IRAM_ATTR esp_timer_get_next_alarm()
|
||||
int64_t IRAM_ATTR esp_timer_get_next_alarm(void)
|
||||
{
|
||||
int64_t next_alarm = INT64_MAX;
|
||||
timer_list_lock();
|
||||
@@ -486,7 +486,7 @@ int64_t IRAM_ATTR esp_timer_get_next_alarm()
|
||||
return next_alarm;
|
||||
}
|
||||
|
||||
int64_t IRAM_ATTR esp_timer_get_time()
|
||||
int64_t IRAM_ATTR esp_timer_get_time(void)
|
||||
{
|
||||
return (int64_t) esp_timer_impl_get_time();
|
||||
}
|
||||
|
||||
@@ -32,7 +32,7 @@ static portMUX_TYPE hooks_spinlock = portMUX_INITIALIZER_UNLOCKED;
|
||||
static esp_freertos_idle_cb_t idle_cb[portNUM_PROCESSORS][MAX_HOOKS]={0};
|
||||
static esp_freertos_tick_cb_t tick_cb[portNUM_PROCESSORS][MAX_HOOKS]={0};
|
||||
|
||||
void IRAM_ATTR esp_vApplicationTickHook()
|
||||
void IRAM_ATTR esp_vApplicationTickHook(void)
|
||||
{
|
||||
int n;
|
||||
int core = xPortGetCoreID();
|
||||
@@ -43,7 +43,7 @@ void IRAM_ATTR esp_vApplicationTickHook()
|
||||
}
|
||||
}
|
||||
|
||||
void esp_vApplicationIdleHook()
|
||||
void esp_vApplicationIdleHook(void)
|
||||
{
|
||||
bool can_go_idle=true;
|
||||
int core = xPortGetCoreID();
|
||||
|
||||
@@ -82,9 +82,9 @@ static void IRAM_ATTR ipc_task(void* arg)
|
||||
* woken up to execute the callback provided to esp_ipc_call_nonblocking or
|
||||
* esp_ipc_call_blocking.
|
||||
*/
|
||||
static void esp_ipc_init() __attribute__((constructor));
|
||||
static void esp_ipc_init(void) __attribute__((constructor));
|
||||
|
||||
static void esp_ipc_init()
|
||||
static void esp_ipc_init(void)
|
||||
{
|
||||
s_ipc_mutex = xSemaphoreCreateMutex();
|
||||
s_ipc_ack = xSemaphoreCreateBinary();
|
||||
|
||||
Reference in New Issue
Block a user