From: Alexander Ovchinnikov Date: Sun, 16 Mar 2014 13:38:05 +0000 (-0400) Subject: micropolis-activity: fails to build with clang instead of gcc X-Git-Url: http://git.zerfleddert.de/cgi-bin/gitweb.cgi/micropolis/commitdiff_plain/3e7f5d09a6edd10098b5de6b4f11e49cc2845b43 micropolis-activity: fails to build with clang instead of gcc Your package fails to build with clang instead of gcc. [-Wreturn-type] The attached patch fixes it. --- diff --git a/src/tcl/tclenv.c b/src/tcl/tclenv.c index be330e1..e850891 100644 --- a/src/tcl/tclenv.c +++ b/src/tcl/tclenv.c @@ -58,7 +58,7 @@ static char * EnvTraceProc _ANSI_ARGS_((ClientData clientData, static int FindVariable _ANSI_ARGS_((char *name, int *lengthPtr)); void setenv_tcl _ANSI_ARGS_((char *name, char *value)); -int unsetenv_tcl _ANSI_ARGS_((char *name)); +void unsetenv_tcl _ANSI_ARGS_((char *name)); /* @@ -277,7 +277,7 @@ setenv_tcl(name, value) *---------------------------------------------------------------------- */ -int +void unsetenv_tcl(name) char *name; /* Name of variable to remove. */ { diff --git a/src/tclx/src/tclxgdat.y b/src/tclx/src/tclxgdat.y index e29d7ea..93b1610 100644 --- a/src/tclx/src/tclxgdat.y +++ b/src/tclx/src/tclxgdat.y @@ -580,8 +580,8 @@ Tcl_GetDate (p, now, zone) * Error message are not used, so discard with dummy function. */ -void +int yyerror(msg) - char *msg; + const char *msg; { }