mirror of
https://github.com/espressif/esp-idf.git
synced 2026-05-03 19:41:55 +02:00
tools: Mass fixing of empty prototypes (for -Wstrict-prototypes)
This commit is contained in:
@@ -41,7 +41,7 @@ typedef struct {
|
||||
* @return
|
||||
* A default configuration structure.
|
||||
*/
|
||||
esp_pthread_cfg_t esp_pthread_get_default_config();
|
||||
esp_pthread_cfg_t esp_pthread_get_default_config(void);
|
||||
|
||||
/**
|
||||
* @brief Configure parameters for creating pthread
|
||||
|
||||
@@ -168,12 +168,12 @@ esp_err_t esp_pthread_get_cfg(esp_pthread_cfg_t *p)
|
||||
return ESP_ERR_NOT_FOUND;
|
||||
}
|
||||
|
||||
static int get_default_pthread_core()
|
||||
static int get_default_pthread_core(void)
|
||||
{
|
||||
return CONFIG_PTHREAD_TASK_CORE_DEFAULT == -1 ? tskNO_AFFINITY : CONFIG_PTHREAD_TASK_CORE_DEFAULT;
|
||||
}
|
||||
|
||||
esp_pthread_cfg_t esp_pthread_get_default_config()
|
||||
esp_pthread_cfg_t esp_pthread_get_default_config(void)
|
||||
{
|
||||
esp_pthread_cfg_t cfg = {
|
||||
.stack_size = CONFIG_PTHREAD_TASK_STACK_SIZE_DEFAULT,
|
||||
@@ -822,6 +822,6 @@ int pthread_attr_setdetachstate(pthread_attr_t *attr, int detachstate)
|
||||
}
|
||||
|
||||
/* Hook function to force linking this file */
|
||||
void pthread_include_pthread_impl()
|
||||
void pthread_include_pthread_impl(void)
|
||||
{
|
||||
}
|
||||
|
||||
@@ -200,6 +200,6 @@ int pthread_cond_destroy(pthread_cond_t *cv)
|
||||
}
|
||||
|
||||
/* Hook function to force linking this file */
|
||||
void pthread_include_pthread_cond_var_impl()
|
||||
void pthread_include_pthread_cond_var_impl(void)
|
||||
{
|
||||
}
|
||||
|
||||
@@ -13,4 +13,4 @@
|
||||
// limitations under the License.
|
||||
#pragma once
|
||||
|
||||
void pthread_internal_local_storage_destructor_callback();
|
||||
void pthread_internal_local_storage_destructor_callback(void);
|
||||
|
||||
@@ -166,7 +166,7 @@ void __wrap_vPortCleanUpTCB(void *tcb)
|
||||
#endif
|
||||
|
||||
/* this function called from pthread_task_func for "early" cleanup of TLS in a pthread */
|
||||
void pthread_internal_local_storage_destructor_callback()
|
||||
void pthread_internal_local_storage_destructor_callback(void)
|
||||
{
|
||||
void *tls = pvTaskGetThreadLocalStoragePointer(NULL, PTHREAD_TLS_INDEX);
|
||||
if (tls != NULL) {
|
||||
@@ -257,6 +257,6 @@ int pthread_setspecific(pthread_key_t key, const void *value)
|
||||
}
|
||||
|
||||
/* Hook function to force linking this file */
|
||||
void pthread_include_pthread_local_storage_impl()
|
||||
void pthread_include_pthread_local_storage_impl(void)
|
||||
{
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user