diff options
author | Sergey Vojtovich <svoj@mariadb.org> | 2015-10-01 13:04:59 +0400 |
---|---|---|
committer | Sergey Vojtovich <svoj@mariadb.org> | 2015-10-01 13:04:59 +0400 |
commit | 727da9c8ec0e6f4baa3f03e0c4b6a11846611417 (patch) | |
tree | bb9c363ac215ba31ed4f8ff3192a3eef758ebf5a /include/my_dbug.h | |
parent | fea156813a80c93f7256c136a3bef4a8efa38131 (diff) | |
download | mariadb-git-727da9c8ec0e6f4baa3f03e0c4b6a11846611417.tar.gz |
MDEV-8379 - SUSE mariadb patches
Fixed unclean prototype declaration. According to ISO/IEC 9899:TC2:
...
10. The special case of an unnamed parameter of type void as the only item in
the list specifies that the function has no parameters.
...
14. An identifier list declares only the identifiers of the parameters of the
function. An empty list in a function declarator that is part of a
definition of that function specifies that the function has no parameters.
The empty list in a function declarator that is not part of a definition of
that function specifies that no information about the number or types of the
parameters is supplied. 124)
...
6.11.6 Function declarators
The use of function declarators with empty parentheses (not prototype-format
parameter type declarators) is an obsolescent feature.
...
Patch contributed by Michal Hrusecky.
Diffstat (limited to 'include/my_dbug.h')
-rw-r--r-- | include/my_dbug.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/my_dbug.h b/include/my_dbug.h index bcf2015466d..f4c854bc10c 100644 --- a/include/my_dbug.h +++ b/include/my_dbug.h @@ -58,7 +58,7 @@ extern void _db_end_(void); extern void _db_lock_file_(void); extern void _db_unlock_file_(void); extern FILE *_db_fp_(void); -extern void _db_flush_(); +extern void _db_flush_(void); extern void dbug_swap_code_state(void **code_state_store); extern void dbug_free_code_state(void **code_state_store); extern const char* _db_get_func_(void); @@ -123,7 +123,7 @@ extern const char* _db_get_func_(void); #ifdef __WIN__ #define DBUG_SUICIDE() DBUG_ABORT() #else -extern void _db_suicide_(); +extern void _db_suicide_(void); #define DBUG_SUICIDE() (_db_flush_(), _db_suicide_()) #endif |