Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. =================================================================== RCS file: /ftp/cvs/cvsroot/src/usr.bin/xlint/lint1/decl.c,v rcsdiff: /ftp/cvs/cvsroot/src/usr.bin/xlint/lint1/decl.c,v: warning: Unknown phrases like `commitid ...;' are present. retrieving revision 1.54.2.1 retrieving revision 1.54.2.2 diff -u -p -r1.54.2.1 -r1.54.2.2 --- src/usr.bin/xlint/lint1/decl.c 2013/02/25 00:30:41 1.54.2.1 +++ src/usr.bin/xlint/lint1/decl.c 2013/06/23 06:29:02 1.54.2.2 @@ -1,4 +1,4 @@ -/* $NetBSD: decl.c,v 1.54.2.1 2013/02/25 00:30:41 tls Exp $ */ +/* $NetBSD: decl.c,v 1.54.2.2 2013/06/23 06:29:02 tls Exp $ */ /* * Copyright (c) 1996 Christopher G. Demetriou. All Rights Reserved. @@ -38,7 +38,7 @@ #include #if defined(__RCSID) && !defined(lint) -__RCSID("$NetBSD: decl.c,v 1.54.2.1 2013/02/25 00:30:41 tls Exp $"); +__RCSID("$NetBSD: decl.c,v 1.54.2.2 2013/06/23 06:29:02 tls Exp $"); #endif #include @@ -425,7 +425,7 @@ tdeferr(type_t *td, tspec_t t) return (td); } break; - /* LINTED (enumeration values not handled in switch) */ + /* LINTED206: (enumeration values not handled in switch) */ case NOTSPEC: case USHORT: case UCHAR: @@ -2876,21 +2876,22 @@ void chkusage(dinfo_t *di) { sym_t *sym; - int mknowarn; + int mklwarn; - /* for this warnings LINTED has no effect */ - mknowarn = nowarn; - nowarn = 0; + /* for this warning LINTED has no effect */ + mklwarn = lwarn; + lwarn = LWARN_ALL; #ifdef DEBUG - printf("%s, %d: >temp nowarn = 0\n", curr_pos.p_file, curr_pos.p_line); + printf("%s, %d: >temp lwarn = %d\n", curr_pos.p_file, curr_pos.p_line, + lwarn); #endif for (sym = di->d_dlsyms; sym != NULL; sym = sym->s_dlnxt) chkusg1(di->d_asm, sym); - nowarn = mknowarn; + lwarn = mklwarn; #ifdef DEBUG - printf("%s, %d: