summaryrefslogtreecommitdiff
path: root/dbug
diff options
context:
space:
mode:
authorMarko Mäkelä <marko.makela@mariadb.com>2022-07-01 09:34:31 +0300
committerMarko Mäkelä <marko.makela@mariadb.com>2022-07-01 09:34:31 +0300
commit6dc1bc3a5822007cdb2d5b79f0a37b4d6b9b65c7 (patch)
treebd405e3505214659b773f0ffcb2d62f8d3b5b3e5 /dbug
parente34f8781397ed451a84c1a3fdc5766c5b1e28d41 (diff)
downloadmariadb-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.c4
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);