diff options
author | Marko Mäkelä <marko.makela@mariadb.com> | 2022-07-01 09:34:31 +0300 |
---|---|---|
committer | Marko Mäkelä <marko.makela@mariadb.com> | 2022-07-01 09:34:31 +0300 |
commit | 6dc1bc3a5822007cdb2d5b79f0a37b4d6b9b65c7 (patch) | |
tree | bd405e3505214659b773f0ffcb2d62f8d3b5b3e5 /dbug | |
parent | e34f8781397ed451a84c1a3fdc5766c5b1e28d41 (diff) | |
download | mariadb-git-6dc1bc3a5822007cdb2d5b79f0a37b4d6b9b65c7.tar.gz |
Fix clang-15 -Wdeprecated-non-prototype
K&R style function definitions are deprecated in all versions of C
and not supported in C2x.
Diffstat (limited to 'dbug')
-rw-r--r-- | dbug/my_main.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/dbug/my_main.c b/dbug/my_main.c index 2b3e92b53cc..80db4d82e06 100644 --- a/dbug/my_main.c +++ b/dbug/my_main.c @@ -7,9 +7,7 @@ #include <my_sys.h> #include <my_pthread.h> -int main (argc, argv) -int argc; -char *argv[]; +int main (int argc, char **argv) { register int result, ix; extern int factorial(int); |