mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-10 20:54:24 +00:00
make code conform to Wstrict-prototypes
Merges https://github.com/espressif/esp-idf/pull/2937
This commit is contained in:

committed by
Anton Maklakov

parent
afbaf74007
commit
74a459dd3d
@@ -39,7 +39,7 @@
|
|||||||
|
|
||||||
static const char *TAG = "qio_mode";
|
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 void (*write_status_fn_t)(unsigned);
|
||||||
|
|
||||||
typedef struct __attribute__((packed)) {
|
typedef struct __attribute__((packed)) {
|
||||||
|
@@ -26,8 +26,8 @@ extern "C"
|
|||||||
/*
|
/*
|
||||||
Definitions for the tickhook and idlehook callbacks
|
Definitions for the tickhook and idlehook callbacks
|
||||||
*/
|
*/
|
||||||
typedef bool (*esp_freertos_idle_cb_t)();
|
typedef bool (*esp_freertos_idle_cb_t)(void);
|
||||||
typedef void (*esp_freertos_tick_cb_t)();
|
typedef void (*esp_freertos_tick_cb_t)(void);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Register a callback to be called from the specified core's idle hook.
|
* @brief Register a callback to be called from the specified core's idle hook.
|
||||||
|
@@ -244,9 +244,9 @@ typedef struct
|
|||||||
/** stop_socket_select which can be called from ISR; set only for the socket driver */
|
/** 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);
|
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 */
|
/** 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 */
|
/** 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;
|
} esp_vfs_t;
|
||||||
|
|
||||||
|
|
||||||
|
@@ -58,7 +58,7 @@ extern "C" {
|
|||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
typedef void (_xtos_handler_func)(...);
|
typedef void (_xtos_handler_func)(...);
|
||||||
#else
|
#else
|
||||||
typedef void (_xtos_handler_func)();
|
typedef void (_xtos_handler_func)(void);
|
||||||
#endif
|
#endif
|
||||||
typedef _xtos_handler_func *_xtos_handler;
|
typedef _xtos_handler_func *_xtos_handler;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user