diff options
author | Jordan K. Hubbard <jkh@FreeBSD.org> | 1996-07-12 19:08:36 +0000 |
---|---|---|
committer | Jordan K. Hubbard <jkh@FreeBSD.org> | 1996-07-12 19:08:36 +0000 |
commit | 526195ad0da110e4a8a5315ec86dddc8e179c06f (patch) | |
tree | b07c215aa55db3fb81db462f4bc70f61cd56c57f /usr.bin/xlint | |
parent | 51295a4d3e4c551df85249433c490208dc7fd23d (diff) | |
download | src-526195ad0da110e4a8a5315ec86dddc8e179c06f.tar.gz src-526195ad0da110e4a8a5315ec86dddc8e179c06f.zip |
General -Wall warning cleanup, part I.
Submitted-By: Kent Vander Velden <graphix@iastate.edu>
Notes
Notes:
svn path=/head/; revision=17142
Diffstat (limited to 'usr.bin/xlint')
-rw-r--r-- | usr.bin/xlint/lint1/decl.c | 1 | ||||
-rw-r--r-- | usr.bin/xlint/lint1/scan.l | 2 | ||||
-rw-r--r-- | usr.bin/xlint/lint1/tree.c | 4 | ||||
-rw-r--r-- | usr.bin/xlint/lint2/read.c | 2 | ||||
-rw-r--r-- | usr.bin/xlint/xlint/xlint.c | 1 |
5 files changed, 10 insertions, 0 deletions
diff --git a/usr.bin/xlint/lint1/decl.c b/usr.bin/xlint/lint1/decl.c index fa023b7557c8..115116615fe3 100644 --- a/usr.bin/xlint/lint1/decl.c +++ b/usr.bin/xlint/lint1/decl.c @@ -479,6 +479,7 @@ tdeferr(td, t) } break; /* LINTED (enumeration values not handled in switch) */ + default: } /* Anything other is not accepted. */ diff --git a/usr.bin/xlint/lint1/scan.l b/usr.bin/xlint/lint1/scan.l index 53f0083e3078..ece6ef9b6612 100644 --- a/usr.bin/xlint/lint1/scan.l +++ b/usr.bin/xlint/lint1/scan.l @@ -43,6 +43,7 @@ static char rcsid[] = "$NetBSD: scan.l,v 1.8 1995/10/23 13:38:51 jpo Exp $"; #include <ctype.h> #include <errno.h> #include <err.h> +#include <math.h> #include "lint1.h" #include "y.tab.h" @@ -554,6 +555,7 @@ icon(base) } break; /* LINTED (enumeration values not handled in switch) */ + default: } if (typ != QUAD && typ != UQUAD) { diff --git a/usr.bin/xlint/lint1/tree.c b/usr.bin/xlint/lint1/tree.c index 36dda8349828..5770f089dd36 100644 --- a/usr.bin/xlint/lint1/tree.c +++ b/usr.bin/xlint/lint1/tree.c @@ -39,6 +39,7 @@ static char rcsid[] = "$NetBSD: tree.c,v 1.12 1995/10/02 17:37:57 jpo Exp $"; #include <string.h> #include <float.h> #include <limits.h> +#include <math.h> #include "lint1.h" #include "y.tab.h" @@ -1132,6 +1133,7 @@ typeok(op, arg, ln, rn) nulleff(ln); break; /* LINTED (enumeration values not handled in switch) */ + default: } if (mp->m_badeop && @@ -3575,6 +3577,7 @@ chkmisc(tn, vctx, tctx, eqwarn, fcall, rvdisc, szof) case STRING: return; /* LINTED (enumeration values not handled in switch) */ + default: } cvctx = mp->m_vctx; @@ -3913,6 +3916,7 @@ precconf(tn) } break; /* LINTED (enumeration values not handled in switch) */ + default: } if (warn) { diff --git a/usr.bin/xlint/lint2/read.c b/usr.bin/xlint/lint2/read.c index daffe1e4d4e3..6498a5c65368 100644 --- a/usr.bin/xlint/lint2/read.c +++ b/usr.bin/xlint/lint2/read.c @@ -613,6 +613,7 @@ inptype(cp, epp) } break; /* LINTED (enumeration value(s) not handled in switch) */ + default: } *epp = cp; @@ -782,6 +783,7 @@ gettlen(cp, epp) } break; /* LINTED (enumeration value(s) not handled in switch) */ + default: } *epp = cp; diff --git a/usr.bin/xlint/xlint/xlint.c b/usr.bin/xlint/xlint/xlint.c index 852fd0120ad3..515456f44031 100644 --- a/usr.bin/xlint/xlint/xlint.c +++ b/usr.bin/xlint/xlint/xlint.c @@ -517,6 +517,7 @@ main(argc, argv) terminate(0); /* NOTREACHED */ + return 0; } /* |