From e75f5c8208c94621ab769d79cdfad458706f846e Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Sat, 15 Sep 2012 01:52:28 +0000 Subject: quiet -Wmissing-prototypes warnings, and enable this warning by default for C with gcc. helps for finding unused functions and making functions static, also did some minor code cleanup. --- source/creator/creator.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'source/creator') diff --git a/source/creator/creator.c b/source/creator/creator.c index b3c11198403..ab9541cf299 100644 --- a/source/creator/creator.c +++ b/source/creator/creator.c @@ -91,7 +91,6 @@ #include "RE_engine.h" #include "RE_pipeline.h" -//XXX #include "playanim_ext.h" #include "ED_datafiles.h" #include "WM_api.h" @@ -454,11 +453,9 @@ static int set_env(int argc, const char **argv, void *UNUSED(data)) static int playback_mode(int argc, const char **argv, void *UNUSED(data)) { - extern void playanim(int argc, const char **argv); - /* not if -b was given first */ if (G.background == 0) { - playanim(argc, argv); /* not the same argc and argv as before */ + WM_main_playanim(argc, argv); /* not the same argc and argv as before */ exit(0); /* 2.4x didn't do this */ } -- cgit v1.2.3