From 74a459dd3ddd8c203835d2a78cd07ff6d31dee69 Mon Sep 17 00:00:00 2001 From: Michael Zimmermann Date: Fri, 11 Jan 2019 09:43:11 +0100 Subject: [PATCH] make code conform to Wstrict-prototypes Merges https://github.com/espressif/esp-idf/pull/2937 --- components/bootloader_support/src/flash_qio_mode.c | 2 +- components/esp_common/include/esp_freertos_hooks.h | 4 ++-- components/vfs/include/esp_vfs.h | 4 ++-- components/xtensa/include/xtensa/xtruntime.h | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/components/bootloader_support/src/flash_qio_mode.c b/components/bootloader_support/src/flash_qio_mode.c index 06a8fcada4..adf536893d 100644 --- a/components/bootloader_support/src/flash_qio_mode.c +++ b/components/bootloader_support/src/flash_qio_mode.c @@ -39,7 +39,7 @@ static const char *TAG = "qio_mode"; -typedef unsigned (*read_status_fn_t)(); +typedef unsigned (*read_status_fn_t)(void); typedef void (*write_status_fn_t)(unsigned); typedef struct __attribute__((packed)) { diff --git a/components/esp_common/include/esp_freertos_hooks.h b/components/esp_common/include/esp_freertos_hooks.h index 5f24bc35a6..47db07ce9d 100644 --- a/components/esp_common/include/esp_freertos_hooks.h +++ b/components/esp_common/include/esp_freertos_hooks.h @@ -26,8 +26,8 @@ extern "C" /* Definitions for the tickhook and idlehook callbacks */ -typedef bool (*esp_freertos_idle_cb_t)(); -typedef void (*esp_freertos_tick_cb_t)(); +typedef bool (*esp_freertos_idle_cb_t)(void); +typedef void (*esp_freertos_tick_cb_t)(void); /** * @brief Register a callback to be called from the specified core's idle hook. diff --git a/components/vfs/include/esp_vfs.h b/components/vfs/include/esp_vfs.h index 4d9396c1c4..e4eafb417c 100644 --- a/components/vfs/include/esp_vfs.h +++ b/components/vfs/include/esp_vfs.h @@ -244,9 +244,9 @@ typedef struct /** stop_socket_select which can be called from ISR; set only for the socket driver */ void (*stop_socket_select_isr)(void *sem, BaseType_t *woken); /** end_select is called to stop the I/O multiplexing and deinitialize the environment created by start_select for the given VFS */ - void* (*get_socket_select_semaphore)(); + void* (*get_socket_select_semaphore)(void); /** get_socket_select_semaphore returns semaphore allocated in the socket driver; set only for the socket driver */ - void (*end_select)(); + void (*end_select)(void); } esp_vfs_t; diff --git a/components/xtensa/include/xtensa/xtruntime.h b/components/xtensa/include/xtensa/xtruntime.h index 9dae1f4b23..f4e1184ed8 100644 --- a/components/xtensa/include/xtensa/xtruntime.h +++ b/components/xtensa/include/xtensa/xtruntime.h @@ -58,7 +58,7 @@ extern "C" { #ifdef __cplusplus typedef void (_xtos_handler_func)(...); #else -typedef void (_xtos_handler_func)(); +typedef void (_xtos_handler_func)(void); #endif typedef _xtos_handler_func *_xtos_handler;