OpenBSD CVS

CVS log for src/usr.bin/xlint/lint1/Attic/err.c


[BACK] Up to [local] / src / usr.bin / xlint / lint1

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.29, Sun Apr 8 16:27:00 2012 UTC (12 years, 2 months ago) by jsg
Branch: MAIN
CVS Tags: HEAD
Changes since 1.28: +1 -1 lines
FILE REMOVED

tedu lint
ok tedu@ guenther@ krw@ espie@ deraadt@

Revision 1.28 / (download) - annotate - [select for diffs], Wed Sep 21 18:08:07 2011 UTC (12 years, 8 months ago) by jsg
Branch: MAIN
CVS Tags: OPENBSD_5_1_BASE, OPENBSD_5_1
Changes since 1.27: +1 -5 lines
Diff to previous 1.27 (colored)

remove rcsids which escaped the purge of 2009

Revision 1.27 / (download) - annotate - [select for diffs], Tue May 31 22:00:07 2011 UTC (13 years ago) by martynas
Branch: MAIN
CVS Tags: OPENBSD_5_0_BASE, OPENBSD_5_0
Changes since 1.26: +4 -2 lines
Diff to previous 1.26 (colored)

Warn on empty non-compound selection statements, such as "if (foo);".

- "empty body of the if statement",
- "empty body of the else statement".

millert@ thought it's useful.

Revision 1.26 / (download) - annotate - [select for diffs], Fri Jun 2 17:38:59 2006 UTC (18 years ago) by cloder
Branch: MAIN
CVS Tags: OPENBSD_4_9_BASE, OPENBSD_4_9, OPENBSD_4_8_BASE, OPENBSD_4_8, OPENBSD_4_7_BASE, OPENBSD_4_7, OPENBSD_4_6_BASE, OPENBSD_4_6, OPENBSD_4_5_BASE, OPENBSD_4_5, OPENBSD_4_4_BASE, OPENBSD_4_4, OPENBSD_4_3_BASE, OPENBSD_4_3, OPENBSD_4_2_BASE, OPENBSD_4_2, OPENBSD_4_1_BASE, OPENBSD_4_1, OPENBSD_4_0_BASE, OPENBSD_4_0
Changes since 1.25: +4 -4 lines
Diff to previous 1.25 (colored)

Rework logic for function argument conversion warnings. Only do certain
classes of warnings if the function is not actually governed by a
prototype, otherwise in standard C the compiler is free to avoid the
usual widening/renarrowing conversions familiar to us from traditional
C.

This gets rid of many duplicate warnings. There is still more work to do
to quiet lint but this is a necessary prerequisite.

Revision 1.25 / (download) - annotate - [select for diffs], Thu Apr 27 20:46:44 2006 UTC (18 years, 1 month ago) by otto
Branch: MAIN
Changes since 1.24: +3 -3 lines
Diff to previous 1.24 (colored)

print a quad as %lld, not %d

Revision 1.24 / (download) - annotate - [select for diffs], Tue Apr 25 18:41:19 2006 UTC (18 years, 1 month ago) by cloder
Branch: MAIN
Changes since 1.23: +15 -15 lines
Diff to previous 1.23 (colored)

Prettier error messages

Revision 1.23 / (download) - annotate - [select for diffs], Tue Apr 18 06:54:14 2006 UTC (18 years, 1 month ago) by cloder
Branch: MAIN
Changes since 1.22: +3 -3 lines
Diff to previous 1.22 (colored)

Add () to function names to make it more clear what is happening

Revision 1.22 / (download) - annotate - [select for diffs], Tue Apr 18 04:10:05 2006 UTC (18 years, 1 month ago) by cloder
Branch: MAIN
Changes since 1.21: +3 -3 lines
Diff to previous 1.21 (colored)

For prototype argument conversions, include both "from" and "to" types.

Revision 1.21 / (download) - annotate - [select for diffs], Tue Apr 18 03:59:46 2006 UTC (18 years, 1 month ago) by cloder
Branch: MAIN
Changes since 1.20: +12 -12 lines
Diff to previous 1.20 (colored)

For all warnings involving prototypes, print the function name and the
argument number.

Revision 1.20 / (download) - annotate - [select for diffs], Mon Mar 13 21:12:32 2006 UTC (18 years, 3 months ago) by moritz
Branch: MAIN
Changes since 1.19: +3 -4 lines
Diff to previous 1.19 (colored)

Do not warn for functions declared with ARGSUSED
but having no arguments. ok deraadt@ cloder@

Revision 1.19 / (download) - annotate - [select for diffs], Wed Mar 8 07:18:51 2006 UTC (18 years, 3 months ago) by moritz
Branch: MAIN
Changes since 1.18: +3 -2 lines
Diff to previous 1.18 (colored)

some cleanup including:

o typos in comments
o missing #include
o remove pointless nomem() func
o unused variables
o more use of asprintf(3)

ok deraadt@

Revision 1.18 / (download) - annotate - [select for diffs], Mon Jan 16 22:16:14 2006 UTC (18 years, 4 months ago) by espie
Branch: MAIN
CVS Tags: OPENBSD_3_9_BASE, OPENBSD_3_9
Changes since 1.17: +3 -2 lines
Diff to previous 1.17 (colored)

minimal recognition of C99 float hex constants, allows lint to parse
frexp.c.

okay cloder@, millert@

Revision 1.17 / (download) - annotate - [select for diffs], Sat Dec 17 20:19:46 2005 UTC (18 years, 5 months ago) by cloder
Branch: MAIN
Changes since 1.16: +3 -2 lines
Diff to previous 1.16 (colored)

Check for functions declared with ARGSUSED but having no arguments.

Revision 1.16 / (download) - annotate - [select for diffs], Thu Dec 15 05:49:48 2005 UTC (18 years, 6 months ago) by cloder
Branch: MAIN
Changes since 1.15: +3 -2 lines
Diff to previous 1.15 (colored)

Add a new warning message: conversion of %s return value from '%s' to '%s'.
Lint now warns when a function's return value is converted to a smaller
(or differently signed) type.  These conversions can happen when
doing an assignment, when passing a function's return value as an argument
to another function, or when initializing a variable.  Currently this
produces useless warnings on tolower() and toupper() because they return
ints but are usually assigned to chars.

Revision 1.15 / (download) - annotate - [select for diffs], Wed Dec 14 22:09:40 2005 UTC (18 years, 6 months ago) by kjell
Branch: MAIN
Changes since 1.14: +3 -3 lines
Diff to previous 1.14 (colored)

Move arg # to start of message. Makes it slighly more useful
even when display is truncated due to long file name.

ok cloder

Revision 1.14 / (download) - annotate - [select for diffs], Sat Dec 10 19:19:31 2005 UTC (18 years, 6 months ago) by cloder
Branch: MAIN
Changes since 1.13: +7 -7 lines
Diff to previous 1.13 (colored)

Change warning/error format to match gcc's.

Revision 1.13 / (download) - annotate - [select for diffs], Sat Dec 10 18:42:45 2005 UTC (18 years, 6 months ago) by cloder
Branch: MAIN
Changes since 1.12: +3 -2 lines
Diff to previous 1.12 (colored)

Lint now warns about sizeof(term) where the operator is anything other
than unary *, ->, a name, or a string.

Revision 1.12 / (download) - annotate - [select for diffs], Sat Dec 10 17:51:49 2005 UTC (18 years, 6 months ago) by cloder
Branch: MAIN
Changes since 1.11: +61 -3 lines
Diff to previous 1.11 (colored)

Add a new lint flag '-f' which, for each warning or error, prints the
offending line from the corresponding source code file.  The general
idea is OK deraadt

Revision 1.11 / (download) - annotate - [select for diffs], Wed Nov 23 22:25:37 2005 UTC (18 years, 6 months ago) by cloder
Branch: MAIN
Changes since 1.10: +3 -2 lines
Diff to previous 1.10 (colored)

Deal somewhat with case ranges, which is a gcc extension.
"fine" deraadt, with his suggested modifications

Revision 1.10 / (download) - annotate - [select for diffs], Wed Nov 23 00:12:13 2005 UTC (18 years, 6 months ago) by cloder
Branch: MAIN
Changes since 1.9: +3 -2 lines
Diff to previous 1.9 (colored)

Warn on a right shift of an N-bit quantity by >= N bits. OK millert,
deraadt

Revision 1.9 / (download) - annotate - [select for diffs], Mon Nov 21 18:28:24 2005 UTC (18 years, 6 months ago) by cloder
Branch: MAIN
Changes since 1.8: +6 -6 lines
Diff to previous 1.8 (colored)

Print both "from" and "to" types in type conversion warnings.  Idea from
NetBSD.  OK deraadt, millert

Revision 1.8 / (download) - annotate - [select for diffs], Sun Nov 20 18:23:58 2005 UTC (18 years, 6 months ago) by cloder
Branch: MAIN
Changes since 1.7: +9 -9 lines
Diff to previous 1.7 (colored)

Rename basename() to lbasename() to avoid conflict with basename(3).

Revision 1.7 / (download) - annotate - [select for diffs], Sun Nov 20 17:42:49 2005 UTC (18 years, 6 months ago) by deraadt
Branch: MAIN
Changes since 1.6: +5 -5 lines
Diff to previous 1.6 (colored)

spacing

Revision 1.6 / (download) - annotate - [select for diffs], Sat Nov 19 03:35:27 2005 UTC (18 years, 6 months ago) by cloder
Branch: MAIN
Changes since 1.5: +5 -10 lines
Diff to previous 1.5 (colored)

knf. OK kjell, brad

Revision 1.5 / (download) - annotate - [select for diffs], Tue Feb 19 19:39:39 2002 UTC (22 years, 3 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_3_8_BASE, OPENBSD_3_8, OPENBSD_3_7_BASE, OPENBSD_3_7, OPENBSD_3_6_BASE, OPENBSD_3_6, OPENBSD_3_5_BASE, OPENBSD_3_5, OPENBSD_3_4_BASE, OPENBSD_3_4, OPENBSD_3_3_BASE, OPENBSD_3_3, OPENBSD_3_2_BASE, OPENBSD_3_2, OPENBSD_3_1_BASE, OPENBSD_3_1
Changes since 1.4: +2 -56 lines
Diff to previous 1.4 (colored)

We live in an ANSI C world.  Remove lots of gratuitous #ifdef __STDC__ cruft.

Revision 1.4 / (download) - annotate - [select for diffs], Sat Feb 16 21:27:59 2002 UTC (22 years, 3 months ago) by millert
Branch: MAIN
Changes since 1.3: +5 -5 lines
Diff to previous 1.3 (colored)

Part one of userland __P removal.  Done with a simple regexp with some minor hand editing to make comments line up correctly.  Another pass is forthcoming that handles the cases that could not be done automatically.

Revision 1.3 / (download) - annotate - [select for diffs], Mon Jul 27 16:53:40 1998 UTC (25 years, 10 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_3_0_BASE, OPENBSD_3_0, OPENBSD_2_9_BASE, OPENBSD_2_9, OPENBSD_2_8_BASE, OPENBSD_2_8, OPENBSD_2_7_BASE, OPENBSD_2_7, OPENBSD_2_6_BASE, OPENBSD_2_6, OPENBSD_2_5_BASE, OPENBSD_2_5, OPENBSD_2_4_BASE, OPENBSD_2_4
Changes since 1.2: +6 -6 lines
Diff to previous 1.2 (colored)

s/comparision/comparison/g; netbsd

Revision 1.2 / (download) - annotate - [select for diffs], Wed Jun 26 05:44:11 1996 UTC (27 years, 11 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_2_3_BASE, OPENBSD_2_3, OPENBSD_2_2_BASE, OPENBSD_2_2, OPENBSD_2_1_BASE, OPENBSD_2_1, OPENBSD_2_0_BASE, OPENBSD_2_0
Changes since 1.1: +2 -1 lines
Diff to previous 1.1 (colored)

rcsid

Revision 1.1.1.1 / (download) - annotate - [select for diffs] (vendor branch), Wed Oct 18 08:47:02 1995 UTC (28 years, 8 months ago) by deraadt
CVS Tags: netbsd_1_1
Changes since 1.1: +0 -0 lines
Diff to previous 1.1 (colored)

initial import of NetBSD tree

Revision 1.1 / (download) - annotate - [select for diffs], Wed Oct 18 08:47:02 1995 UTC (28 years, 8 months ago) by deraadt
Branch: MAIN

Initial revision

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.