A new user interface for you! Read more...

File lfe-0.9.2-fix-build-warnings.patch of Package lfe

diff -Ndurp lfe-0.9.2/c_src/lfeexec.c lfe-0.9.2-fix-build-warnings/c_src/lfeexec.c
--- lfe-0.9.2/c_src/lfeexec.c	2015-04-06 18:30:36.000000000 +0300
+++ lfe-0.9.2-fix-build-warnings/c_src/lfeexec.c	2015-05-26 10:55:22.000000000 +0300
@@ -40,8 +40,8 @@ static int Eargc = 0;		/* Argument count
 /* Local functions. */
 
 static void error(char *format, ...);
-static char *emalloc(size_t size);
 #ifdef __WIN32__
+static char *emalloc(size_t size);
 static char* possibly_quote(char *arg);
 #endif
 
@@ -133,6 +133,7 @@ int main(int argc, char **argv) {
 
   execvp(emu, Eargv);		/* Start erl */
   error("Error %d executing \'%s\'.", errno, emu);
+  return 1;
 }
 
 void error(char* format, ...)
@@ -147,6 +148,7 @@ void error(char* format, ...)
     exit(1);
 }
 
+#ifdef __WIN32__
 static char*
 emalloc(size_t size)
 {
@@ -156,7 +158,6 @@ emalloc(size_t size)
   return p;
 }
 
-#ifdef __WIN32__
 static char*
 possibly_quote(char* arg)
 {