From ef4b5054fde08b5e41bfa88d1df26ff58320f326 Mon Sep 17 00:00:00 2001 From: Sascha Wildner Date: Sun, 20 Sep 2009 19:27:43 +0200 Subject: [PATCH] sh(1): Raise WARNS to 6 and fix warnings. --- bin/sh/Makefile | 2 -- bin/sh/bltin/bltin.h | 1 - bin/sh/histedit.c | 1 - 3 files changed, 4 deletions(-) diff --git a/bin/sh/Makefile b/bin/sh/Makefile index a27b7ff497..d17a932c30 100644 --- a/bin/sh/Makefile +++ b/bin/sh/Makefile @@ -2,8 +2,6 @@ # $FreeBSD: src/bin/sh/Makefile,v 1.30.2.1 2001/12/15 10:05:18 knu Exp $ # $DragonFly: src/bin/sh/Makefile,v 1.7 2006/09/28 22:29:44 pavalos Exp $ -WARNS?= 5 # Not yet - PROG= sh SHSRCS= alias.c arith.y arith_lex.l cd.c echo.c error.c eval.c exec.c expand.c \ histedit.c input.c jobs.c mail.c main.c memalloc.c miscbltin.c \ diff --git a/bin/sh/bltin/bltin.h b/bin/sh/bltin/bltin.h index 67f0400c25..7028f8bbcf 100644 --- a/bin/sh/bltin/bltin.h +++ b/bin/sh/bltin/bltin.h @@ -86,7 +86,6 @@ int main(int, char *[]); #define INITARGS(argv) if ((commandname = argv[0]) == NULL) {fputs("Argc is zero\n", stderr); exit(2);} else #endif -pointer stalloc(int); void error(const char *, ...) __printf0like(1, 2); diff --git a/bin/sh/histedit.c b/bin/sh/histedit.c index 1c1e988ba8..f7dc3c6693 100644 --- a/bin/sh/histedit.c +++ b/bin/sh/histedit.c @@ -67,7 +67,6 @@ History *hist; /* history cookie */ EditLine *el; /* editline cookie */ int displayhist; static FILE *el_in, *el_out, *el_err; -unsigned char _el_fn_complete(EditLine *, int); STATIC char *fc_replace(const char *, char *, char *); -- 2.11.4.GIT