Fix compiler warnings (#3784)

The definition of os_get_invalid_handle in platform_internal.h did not
match the declaration in platform_api_extension.h.
This commit is contained in:
Marcin Kolny
2024-09-11 01:59:16 +01:00
committed by GitHub
parent 1a61cb75e1
commit b882017674
13 changed files with 13 additions and 13 deletions

View File

@ -77,7 +77,7 @@ typedef void *os_dir_stream;
typedef int os_raw_file_handle;
static inline os_file_handle
os_get_invalid_handle()
os_get_invalid_handle(void)
{
return -1;
}

View File

@ -151,7 +151,7 @@ typedef DIR *os_dir_stream;
typedef int os_raw_file_handle;
static inline os_file_handle
os_get_invalid_handle()
os_get_invalid_handle(void)
{
return -1;
}

View File

@ -69,7 +69,7 @@ typedef DIR *os_dir_stream;
typedef int os_raw_file_handle;
static inline os_file_handle
os_get_invalid_handle()
os_get_invalid_handle(void)
{
return -1;
}

View File

@ -114,7 +114,7 @@ typedef DIR *os_dir_stream;
typedef int os_raw_file_handle;
static inline os_file_handle
os_get_invalid_handle()
os_get_invalid_handle(void)
{
return -1;
}

View File

@ -145,7 +145,7 @@ typedef DIR *os_dir_stream;
typedef int os_raw_file_handle;
static inline os_file_handle
os_get_invalid_handle()
os_get_invalid_handle(void)
{
return -1;
}

View File

@ -115,7 +115,7 @@ os_set_signal_number_for_blocking_op(int signo);
typedef int os_file_handle;
static inline os_file_handle
os_get_invalid_handle()
os_get_invalid_handle(void)
{
return -1;
}

View File

@ -74,7 +74,7 @@ typedef DIR *os_dir_stream;
typedef int os_raw_file_handle;
static inline os_file_handle
os_get_invalid_handle()
os_get_invalid_handle(void)
{
return -1;
}

View File

@ -127,7 +127,7 @@ typedef DIR *os_dir_stream;
typedef int os_raw_file_handle;
static inline os_file_handle
os_get_invalid_handle()
os_get_invalid_handle(void)
{
return -1;
}

View File

@ -89,7 +89,7 @@ int isnan(double x);
#endif
static inline os_file_handle
os_get_invalid_handle()
os_get_invalid_handle(void)
{
return -1;
}

View File

@ -124,7 +124,7 @@ typedef void *os_dir_stream;
typedef int os_raw_file_handle;
static inline os_file_handle
os_get_invalid_handle()
os_get_invalid_handle(void)
{
return -1;
}

View File

@ -101,7 +101,7 @@ os_sigreturn();
#define os_getpagesize getpagesize
static inline os_file_handle
os_get_invalid_handle()
os_get_invalid_handle(void)
{
return -1;
}

View File

@ -188,7 +188,7 @@ typedef uint32_t os_raw_file_handle;
#endif
static inline os_file_handle
os_get_invalid_handle()
os_get_invalid_handle(void)
{
return NULL;
}

View File

@ -209,7 +209,7 @@ typedef void *os_dir_stream;
typedef int os_raw_file_handle;
static inline os_file_handle
os_get_invalid_handle()
os_get_invalid_handle(void)
{
return -1;
}