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_sys.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_sys.h')
-rw-r--r-- | include/my_sys.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/include/my_sys.h b/include/my_sys.h index 741116a1dd5..036084a0ae0 100644 --- a/include/my_sys.h +++ b/include/my_sys.h @@ -642,7 +642,7 @@ extern void my_osmaperr(unsigned long last_error); #endif extern void init_glob_errs(void); -extern const char** get_global_errmsgs(); +extern const char** get_global_errmsgs(void); extern void wait_for_free_space(const char *filename, int errors); extern FILE *my_fopen(const char *FileName,int Flags,myf MyFlags); extern FILE *my_fdopen(File Filedes,const char *name, int Flags,myf MyFlags); @@ -667,7 +667,7 @@ extern void my_printf_error(uint my_err, const char *format, ATTRIBUTE_FORMAT(printf, 2, 4); extern void my_printv_error(uint error, const char *format, myf MyFlags, va_list ap); -extern int my_error_register(const char** (*get_errmsgs) (), +extern int my_error_register(const char** (*get_errmsgs) (void), uint first, uint last); extern const char **my_error_unregister(uint first, uint last); extern void my_message(uint my_err, const char *str,myf MyFlags); @@ -885,12 +885,12 @@ extern uint my_set_max_open_files(uint files); void my_free_open_file_info(void); extern my_bool my_gethwaddr(uchar *to); -extern int my_getncpus(); +extern int my_getncpus(void); #define HRTIME_RESOLUTION 1000000ULL /* microseconds */ typedef struct {ulonglong val;} my_hrtime_t; -void my_time_init(); -extern my_hrtime_t my_hrtime(); +void my_time_init(void); +extern my_hrtime_t my_hrtime(void); extern ulonglong my_interval_timer(void); extern ulonglong my_getcputime(void); @@ -949,7 +949,7 @@ int my_msync(int, void *, size_t, int); void my_uuid_init(ulong seed1, ulong seed2); void my_uuid(uchar *guid); void my_uuid2str(const uchar *guid, char *s); -void my_uuid_end(); +void my_uuid_end(void); /* character sets */ extern void my_charset_loader_init_mysys(MY_CHARSET_LOADER *loader); |