From 3e7f5d09a6edd10098b5de6b4f11e49cc2845b43 Mon Sep 17 00:00:00 2001 From: Alexander Ovchinnikov Date: Sun, 16 Mar 2014 09:38:05 -0400 Subject: [PATCH 1/1] 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. --- src/tcl/tclenv.c | 4 ++-- src/tclx/src/tclxgdat.y | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) 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; { } -- 2.39.5