mirror of
https://github.com/FreeRDP/FreeRDP.git
synced 2024-11-23 09:54:26 +08:00
Merge pull request #10721 from akallabeth/language-extension
Language extension
This commit is contained in:
commit
815d6a9fdd
@ -43,7 +43,6 @@ if (ENABLE_WARNING_VERBOSE)
|
||||
-Wno-reserved-identifier
|
||||
-Wno-covered-switch-default
|
||||
-Wno-disabled-macro-expansion
|
||||
-Wno-language-extension-token
|
||||
-Wno-ctad-maybe-unsupported
|
||||
-Wno-c++98-compat
|
||||
-Wno-c++98-compat-pedantic
|
||||
|
@ -43,7 +43,6 @@ if (ENABLE_WARNING_VERBOSE)
|
||||
-Wno-reserved-identifier
|
||||
-Wno-covered-switch-default
|
||||
-Wno-disabled-macro-expansion
|
||||
-Wno-language-extension-token
|
||||
)
|
||||
endif()
|
||||
|
||||
|
@ -146,7 +146,7 @@ WINPR_API const char* winpr_get_build_config(void);
|
||||
* @since version 3.9.0
|
||||
*/
|
||||
#define WINPR_REINTERPRET_CAST(ptr, srcType, dstType) \
|
||||
({ \
|
||||
__extension__({ \
|
||||
union \
|
||||
{ \
|
||||
srcType src; \
|
||||
@ -164,7 +164,7 @@ WINPR_API const char* winpr_get_build_config(void);
|
||||
* @since version 3.9.0
|
||||
*/
|
||||
#define WINPR_CAST_CONST_PTR_AWAY(ptr, dstType) \
|
||||
({ \
|
||||
__extension__({ \
|
||||
union \
|
||||
{ \
|
||||
typeof(ptr) src; \
|
||||
@ -182,7 +182,7 @@ WINPR_API const char* winpr_get_build_config(void);
|
||||
* @since version 3.9.0
|
||||
*/
|
||||
#define WINPR_FUNC_PTR_CAST(ptr, dstType) \
|
||||
({ \
|
||||
__extension__({ \
|
||||
union \
|
||||
{ \
|
||||
typeof(ptr) src; \
|
||||
|
@ -878,6 +878,7 @@ typedef struct
|
||||
|
||||
static const char file_search_magic[] = "file_srch_magic";
|
||||
|
||||
WINPR_ATTR_MALLOC(FindClose, 1)
|
||||
static WIN32_FILE_SEARCH* file_search_new(const char* name, size_t namelen, const char* pattern,
|
||||
size_t patternlen)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user