mirror of
https://github.com/MariaDB/server.git
synced 2025-01-26 16:54:15 +01:00
Fix clang-15 -Wdeprecated-non-prototype
K&R style function definitions are deprecated in all versions of C and not supported in C2x.
This commit is contained in:
parent
e34f878139
commit
6dc1bc3a58
2 changed files with 7 additions and 16 deletions
|
@ -7,9 +7,7 @@
|
||||||
#include <my_sys.h>
|
#include <my_sys.h>
|
||||||
#include <my_pthread.h>
|
#include <my_pthread.h>
|
||||||
|
|
||||||
int main (argc, argv)
|
int main (int argc, char **argv)
|
||||||
int argc;
|
|
||||||
char *argv[];
|
|
||||||
{
|
{
|
||||||
register int result, ix;
|
register int result, ix;
|
||||||
extern int factorial(int);
|
extern int factorial(int);
|
||||||
|
|
|
@ -148,9 +148,7 @@ int main(int argc, char *argv[])
|
||||||
/* reads options */
|
/* reads options */
|
||||||
/* Initiates DEBUG - but no debugging here ! */
|
/* Initiates DEBUG - but no debugging here ! */
|
||||||
|
|
||||||
static int static_get_options(argc,argv)
|
static int static_get_options(int *argc, char***argv)
|
||||||
register int *argc;
|
|
||||||
register char **argv[];
|
|
||||||
{
|
{
|
||||||
int help,version;
|
int help,version;
|
||||||
char *pos;
|
char *pos;
|
||||||
|
@ -218,10 +216,9 @@ register char **argv[];
|
||||||
} /* static_get_options */
|
} /* static_get_options */
|
||||||
|
|
||||||
|
|
||||||
static int get_replace_strings(argc,argv,from_array,to_array)
|
static int get_replace_strings(int *argc, char ***argv,
|
||||||
register int *argc;
|
POINTER_ARRAY *from_array,
|
||||||
register char **argv[];
|
POINTER_ARRAY *to_array)
|
||||||
POINTER_ARRAY *from_array,*to_array;
|
|
||||||
{
|
{
|
||||||
char *pos;
|
char *pos;
|
||||||
|
|
||||||
|
@ -965,9 +962,7 @@ static void free_buffer()
|
||||||
bytes read from disk.
|
bytes read from disk.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
static int fill_buffer_retaining(fd,n)
|
static int fill_buffer_retaining(File fd, int n)
|
||||||
File fd;
|
|
||||||
int n;
|
|
||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
|
@ -1010,9 +1005,7 @@ int n;
|
||||||
/* Return 0 if convert is ok */
|
/* Return 0 if convert is ok */
|
||||||
/* Global variable update is set if something was changed */
|
/* Global variable update is set if something was changed */
|
||||||
|
|
||||||
static int convert_pipe(rep,in,out)
|
static int convert_pipe(REPLACE *rep, FILE *in, FILE *out)
|
||||||
REPLACE *rep;
|
|
||||||
FILE *in,*out;
|
|
||||||
{
|
{
|
||||||
int retain,error;
|
int retain,error;
|
||||||
uint length;
|
uint length;
|
||||||
|
|
Loading…
Add table
Reference in a new issue