Merge pull request #10721 from akallabeth/language-extension

Language extension
This commit is contained in:
akallabeth 2024-10-09 13:37:26 +02:00 committed by GitHub
commit 815d6a9fdd
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 4 additions and 5 deletions

View File

@ -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

View File

@ -43,7 +43,6 @@ if (ENABLE_WARNING_VERBOSE)
-Wno-reserved-identifier
-Wno-covered-switch-default
-Wno-disabled-macro-expansion
-Wno-language-extension-token
)
endif()

View File

@ -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; \

View File

@ -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)
{