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:
@ -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;
|
||||
}
|
||||
|
||||
@ -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;
|
||||
}
|
||||
|
||||
@ -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;
|
||||
}
|
||||
|
||||
@ -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;
|
||||
}
|
||||
|
||||
@ -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;
|
||||
}
|
||||
|
||||
@ -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;
|
||||
}
|
||||
|
||||
@ -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;
|
||||
}
|
||||
|
||||
@ -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;
|
||||
}
|
||||
|
||||
@ -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;
|
||||
}
|
||||
|
||||
@ -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;
|
||||
}
|
||||
|
||||
@ -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;
|
||||
}
|
||||
|
||||
@ -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;
|
||||
}
|
||||
|
||||
@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user