sh(1): Fix warnings when compiling with -DNO_HISTORY.
authorSascha Wildner <saw@online.de>
Sat, 4 Apr 2009 20:38:31 +0000 (22:38 +0200)
committerSascha Wildner <saw@online.de>
Sat, 4 Apr 2009 20:38:31 +0000 (22:38 +0200)
bin/sh/histedit.c

index 797685a..5348394 100644 (file)
@@ -54,8 +54,8 @@
 #include "main.h"
 #include "output.h"
 #include "mystring.h"
-#ifndef NO_HISTORY
 #include "myhistedit.h"
+#ifndef NO_HISTORY
 #include "error.h"
 #include "eval.h"
 #include "memalloc.h"
@@ -485,7 +485,7 @@ bindcmd(int argc, char **argv)
 #include "error.h"
 
 int
-histcmd(int argc, char **argv)
+histcmd(int argc __unused, char **argv __unused)
 {
 
        error("not compiled with history support");
@@ -494,7 +494,7 @@ histcmd(int argc, char **argv)
 }
 
 int
-bindcmd(int argc, char **argv)
+bindcmd(int argc __unused, char **argv __unused)
 {
 
        error("not compiled with line editing support");