aboutsummaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
authorDoug Barton <dougb@FreeBSD.org>2010-12-05 21:33:05 +0000
committerDoug Barton <dougb@FreeBSD.org>2010-12-05 21:33:05 +0000
commitd7233fd61504a4d2e3740d8fb4c121c78a278ecf (patch)
treee21b4fbd4e46b9f4a5b3713cfc7f2bf825525667 /usr.bin
parent9b3f439482d10e91ca0cbcba4dbc240affb38181 (diff)
downloadsrc-d7233fd61504a4d2e3740d8fb4c121c78a278ecf.tar.gz
src-d7233fd61504a4d2e3740d8fb4c121c78a278ecf.zip
Fix an "unused variable" error that gets us all the way to WARNS=6
Notes
Notes: svn path=/head/; revision=216206
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/stat/Makefile1
-rw-r--r--usr.bin/stat/stat.c6
2 files changed, 3 insertions, 4 deletions
diff --git a/usr.bin/stat/Makefile b/usr.bin/stat/Makefile
index 808c41e9b0cb..1a549793bb7c 100644
--- a/usr.bin/stat/Makefile
+++ b/usr.bin/stat/Makefile
@@ -1,7 +1,6 @@
# $FreeBSD$
PROG= stat
-WARNS?= 2
LINKS= ${BINDIR}/stat ${BINDIR}/readlink
MLINKS= stat.1 readlink.1
diff --git a/usr.bin/stat/stat.c b/usr.bin/stat/stat.c
index 8f7a55ee0b77..e3e8c33ba241 100644
--- a/usr.bin/stat/stat.c
+++ b/usr.bin/stat/stat.c
@@ -177,7 +177,7 @@ __FBSDID("$FreeBSD$");
void usage(const char *);
void output(const struct stat *, const char *,
- const char *, int, int, int);
+ const char *, int, int);
int format1(const struct stat *, /* stat info */
const char *, /* the file name */
const char *, int, /* the format string itself */
@@ -341,7 +341,7 @@ main(int argc, char *argv[])
warn("%s: stat", file);
}
else
- output(&st, file, statfmt, fn, nonl, quiet);
+ output(&st, file, statfmt, fn, nonl);
argv++;
argc--;
@@ -383,7 +383,7 @@ usage(const char *synopsis)
*/
void
output(const struct stat *st, const char *file,
- const char *statfmt, int fn, int nonl, int quiet)
+ const char *statfmt, int fn, int nonl)
{
int flags, size, prec, ofmt, hilo, what;
char buf[PATH_MAX + 4 + 1];