diff options
author | jkh <jkh@FreeBSD.org> | 1996-07-12 19:08:36 +0000 |
---|---|---|
committer | jkh <jkh@FreeBSD.org> | 1996-07-12 19:08:36 +0000 |
commit | 730964efd28b80be48ed35a215a362dde2b6b7a7 (patch) | |
tree | b07c215aa55db3fb81db462f4bc70f61cd56c57f /usr.bin/xlint | |
parent | c4d4a99d31762beef936f34571330923e9300da9 (diff) | |
download | FreeBSD-src-730964efd28b80be48ed35a215a362dde2b6b7a7.zip FreeBSD-src-730964efd28b80be48ed35a215a362dde2b6b7a7.tar.gz |
General -Wall warning cleanup, part I.
Submitted-By: Kent Vander Velden <graphix@iastate.edu>
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 fa023b7..1151166 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 53f0083..ece6ef9 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 36dda83..5770f08 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 daffe1e..6498a5c 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 852fd01..515456f 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; } /* |