patch 7.4.2254
Problem: Compiler warnings in MzScheme code. Solution: Add UNUSED. Remove unreachable code.
This commit is contained in:
@ -1008,8 +1008,13 @@ static intptr_t _tls_index = 0;
|
|||||||
# endif
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/*
|
||||||
|
* mzscheme_main() is called early in main().
|
||||||
|
* We may call scheme_main_setup() which calls mzscheme_env_main() which then
|
||||||
|
* trampolines into vim_main2(), which never returns.
|
||||||
|
*/
|
||||||
int
|
int
|
||||||
mzscheme_main()
|
mzscheme_main(void)
|
||||||
{
|
{
|
||||||
int argc = 0;
|
int argc = 0;
|
||||||
char *argv = NULL;
|
char *argv = NULL;
|
||||||
@ -1036,9 +1041,8 @@ mzscheme_main()
|
|||||||
}
|
}
|
||||||
|
|
||||||
static int
|
static int
|
||||||
mzscheme_env_main(Scheme_Env *env, int argc, char **argv)
|
mzscheme_env_main(Scheme_Env *env, int argc UNUSED, char **argv UNUSED)
|
||||||
{
|
{
|
||||||
int vim_main_result;
|
|
||||||
#ifdef TRAMPOLINED_MZVIM_STARTUP
|
#ifdef TRAMPOLINED_MZVIM_STARTUP
|
||||||
/* Scheme has created the environment for us */
|
/* Scheme has created the environment for us */
|
||||||
environment = env;
|
environment = env;
|
||||||
@ -1055,17 +1059,10 @@ mzscheme_env_main(Scheme_Env *env, int argc, char **argv)
|
|||||||
# endif
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* mzscheme_main is called as a trampoline from main.
|
vim_main2();
|
||||||
* We trampoline into vim_main2
|
/* not reached, vim_main2() will loop until exit() */
|
||||||
* Passing argc, argv through from mzscheme_main
|
|
||||||
*/
|
return 0;
|
||||||
vim_main_result = vim_main2();
|
|
||||||
#if !defined(TRAMPOLINED_MZVIM_STARTUP) && defined(MZ_PRECISE_GC)
|
|
||||||
/* releasing dummy */
|
|
||||||
MZ_GC_REG();
|
|
||||||
MZ_GC_UNREG();
|
|
||||||
#endif
|
|
||||||
return vim_main_result;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static Scheme_Object*
|
static Scheme_Object*
|
||||||
|
|||||||
@ -763,6 +763,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
2254,
|
||||||
/**/
|
/**/
|
||||||
2253,
|
2253,
|
||||||
/**/
|
/**/
|
||||||
|
|||||||
Reference in New Issue
Block a user