tools: Mass fixing of empty prototypes (for -Wstrict-prototypes)

This commit is contained in:
Anton Maklakov
2019-07-16 16:33:30 +07:00
parent 50629eec27
commit afbaf74007
507 changed files with 1295 additions and 1295 deletions
+1 -1
View File
@@ -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
+3 -3
View File
@@ -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)
{
}
+1 -1
View File
@@ -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)
{
}
+1 -1
View File
@@ -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);
+2 -2
View File
@@ -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)
{
}