mirror of
https://github.com/MariaDB/server.git
synced 2026-01-06 05:22:24 +03:00
Backport of:
---------------------------------------------------------------------- ChangeSet@1.2571, 2008-04-08 12:30:06+02:00, vvaintroub@wva. +122 -0 Bug#32082 : definition of VOID in my_global.h conflicts with Windows SDK headers VOID macro is now removed. Its usage is replaced with void cast. In some cases, where cast does not make much sense (pthread_*, printf, hash_delete, my_seek), cast is ommited.
This commit is contained in:
@@ -265,13 +265,13 @@ extern void dummy_functions(void);
|
||||
|
||||
void dummy_functions(void)
|
||||
{
|
||||
VOID(memchr(from,'a',5));
|
||||
VOID(memcmp(from,to,5));
|
||||
VOID(memcpy(from,to,5));
|
||||
VOID(memset(from,' ',5));
|
||||
VOID(strcmp(from,to));
|
||||
VOID(strcpy(from,to));
|
||||
VOID(strstr(from,to));
|
||||
VOID(strrchr(from,'a'));
|
||||
(void) memchr(from,'a',5);
|
||||
(void) memcmp(from,to,5);
|
||||
(void) memcpy(from,to,5);
|
||||
(void) memset(from,' ',5);
|
||||
(void) strcmp(from,to);
|
||||
(void) strcpy(from,to);
|
||||
(void) strstr(from,to);
|
||||
(void) strrchr(from,'a');
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user