The NetBSD Project

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

[BACK] Up to [cvs.NetBSD.org] / src / usr.bin / xlint / lint1

Request diff between arbitrary revisions


Default branch: MAIN
Current tag: MAIN


Revision 1.46 / (download) - annotate - [select for diffs], Fri Apr 19 17:43:05 2013 UTC (5 weeks ago) by christos
Branch: MAIN
CVS Tags: HEAD
Changes since 1.45: +8 -5 lines
Diff to previous 1.45 (colored)

Allow linted comments to take an argument that defines which error to suppress.

Revision 1.45 / (download) - annotate - [select for diffs], Fri Apr 20 18:35:28 2012 UTC (13 months ago) by christos
Branch: MAIN
CVS Tags: yamt-pagecache-base8, yamt-pagecache-base7, yamt-pagecache-base6, yamt-pagecache-base5, tls-maxphys-nbase, tls-maxphys-base, tls-maxphys, agc-symver-base, agc-symver
Changes since 1.44: +4 -4 lines
Diff to previous 1.44 (colored)

add __PRETTY_FUNCTION__

Revision 1.44 / (download) - annotate - [select for diffs], Tue Oct 4 16:19:59 2011 UTC (19 months, 2 weeks ago) by christos
Branch: MAIN
CVS Tags: yamt-pagecache-base4, yamt-pagecache-base3, yamt-pagecache-base2, yamt-pagecache-base, netbsd-6-base, netbsd-6-1-RELEASE, netbsd-6-1-RC4, netbsd-6-1-RC3, netbsd-6-1-RC2, netbsd-6-1-RC1, netbsd-6-1, netbsd-6-0-RELEASE, netbsd-6-0-RC2, netbsd-6-0-RC1, netbsd-6-0-2-RELEASE, netbsd-6-0-1-RELEASE, netbsd-6-0, netbsd-6, matt-nb6-plus-nbase, matt-nb6-plus-base, matt-nb6-plus
Branch point for: yamt-pagecache
Changes since 1.43: +3 -2 lines
Diff to previous 1.43 (colored)

Handle c99 declarations in the middle of blocks.

Revision 1.43 / (download) - annotate - [select for diffs], Fri Oct 2 15:03:45 2009 UTC (3 years, 7 months ago) by christos
Branch: MAIN
CVS Tags: matt-premerge-20091211, matt-mips64-premerge-20101231, cherry-xenmp-base, cherry-xenmp, bouyer-quota2-nbase, bouyer-quota2-base, bouyer-quota2
Changes since 1.42: +3 -2 lines
Diff to previous 1.42 (colored)

understand __attribute__((__packed__)) and __packed.

Revision 1.42 / (download) - annotate - [select for diffs], Sat May 2 16:10:49 2009 UTC (4 years ago) by christos
Branch: MAIN
CVS Tags: jym-xensuspend-nbase, jym-xensuspend-base
Changes since 1.41: +6 -6 lines
Diff to previous 1.41 (colored)

Add __alignof__.

Revision 1.41 / (download) - annotate - [select for diffs], Fri May 1 22:03:36 2009 UTC (4 years ago) by christos
Branch: MAIN
Changes since 1.40: +3 -2 lines
Diff to previous 1.40 (colored)

add variable declarations in for loops for c99

Revision 1.40 / (download) - annotate - [select for diffs], Wed Apr 15 01:20:57 2009 UTC (4 years, 1 month ago) by christos
Branch: MAIN
Changes since 1.39: +4 -4 lines
Diff to previous 1.39 (colored)

Lukemify (WARNS=4)

Revision 1.39 / (download) - annotate - [select for diffs], Mon Apr 13 21:17:37 2009 UTC (4 years, 1 month ago) by christos
Branch: MAIN
Changes since 1.38: +5 -5 lines
Diff to previous 1.38 (colored)

since we know the types, print what they are in error messages.

Revision 1.38 / (download) - annotate - [select for diffs], Thu Jul 31 15:21:34 2008 UTC (4 years, 9 months ago) by christos
Branch: MAIN
CVS Tags: wrstuden-revivesa-base-3, wrstuden-revivesa-base-2, netbsd-5-base, netbsd-5-2-RELEASE, netbsd-5-2-RC1, netbsd-5-2, netbsd-5-1-RELEASE, netbsd-5-1-RC4, netbsd-5-1-RC3, netbsd-5-1-RC2, netbsd-5-1-RC1, netbsd-5-1-2-RELEASE, netbsd-5-1-1-RELEASE, netbsd-5-1, netbsd-5-0-RELEASE, netbsd-5-0-RC4, netbsd-5-0-RC3, netbsd-5-0-RC2, netbsd-5-0-RC1, netbsd-5-0-2-RELEASE, netbsd-5-0-1-RELEASE, netbsd-5-0, netbsd-5, matt-nb5-pq3-base, matt-nb5-pq3, matt-nb5-mips64-u2-k2-k4-k7-k8-k9, matt-nb5-mips64-u1-k1-k5, matt-nb5-mips64-premerge-20101231, matt-nb5-mips64-premerge-20091211, matt-nb5-mips64-k15, matt-nb5-mips64, matt-nb4-mips64-k7-u2a-k9b, matt-mips64-base2
Branch point for: jym-xensuspend
Changes since 1.37: +3 -2 lines
Diff to previous 1.37 (colored)

Add Picky flag; this produces more warnings:
1. long a; int i; a = i * i;
   suggests casting i to long, so that we gain precision in the multiplication.
2. warns about magnitude comparisons in enums.
3. warns about possible sign extension issues when integer types become widened.

Revision 1.37 / (download) - annotate - [select for diffs], Fri Jul 25 18:33:53 2008 UTC (4 years, 10 months ago) by dsl
Branch: MAIN
Changes since 1.36: +3 -2 lines
Diff to previous 1.36 (colored)

Add a check for 'continue' inside a 'do ... while (0)' loop.
'continue' has the same effect as 'break' - as that probably isn't
what the writer had in mind!

Revision 1.36 / (download) - annotate - [select for diffs], Sun Apr 27 01:45:04 2008 UTC (5 years ago) by christos
Branch: MAIN
CVS Tags: yamt-pf42-base4, yamt-pf42-base3, yamt-pf42-base2, wrstuden-revivesa-base-1, wrstuden-revivesa-base, hpcarm-cleanup-nbase
Branch point for: wrstuden-revivesa
Changes since 1.35: +6 -6 lines
Diff to previous 1.35 (colored)

print the types involved in an error.

Revision 1.35 / (download) - annotate - [select for diffs], Sun Apr 27 00:13:58 2008 UTC (5 years ago) by christos
Branch: MAIN
Changes since 1.34: +4 -6 lines
Diff to previous 1.34 (colored)

reorder a couple of error messages.

Revision 1.34 / (download) - annotate - [select for diffs], Sat Apr 26 16:14:23 2008 UTC (5 years ago) by christos
Branch: MAIN
Changes since 1.33: +3 -3 lines
Diff to previous 1.33 (colored)

fix "long double" type recognition which broke with the complex changes.

Revision 1.33 / (download) - annotate - [select for diffs], Fri Apr 25 22:18:34 2008 UTC (5 years, 1 month ago) by christos
Branch: MAIN
Changes since 1.32: +5 -3 lines
Diff to previous 1.32 (colored)

preliminary _Complex support.
NB: Does not really understand type conversions between complex and doubles.

Revision 1.32 / (download) - annotate - [select for diffs], Tue Mar 4 02:41:46 2008 UTC (5 years, 2 months ago) by christos
Branch: MAIN
CVS Tags: yamt-pf42-baseX, yamt-pf42-base, matt-armv6-nbase, keiichi-mipv6-nbase, keiichi-mipv6-base
Branch point for: yamt-pf42
Changes since 1.31: +3 -3 lines
Diff to previous 1.31 (colored)

PR/38142: YAMAMOTO Takashi: lint -S complains on variable length arrays

Revision 1.31 / (download) - annotate - [select for diffs], Mon Oct 23 00:15:58 2006 UTC (6 years, 7 months ago) by christos
Branch: MAIN
CVS Tags: wrstuden-fixsa-newbase, wrstuden-fixsa-base-1, wrstuden-fixsa-base, wrstuden-fixsa, netbsd-4-base, netbsd-4-0-RELEASE, netbsd-4-0-RC5, netbsd-4-0-RC4, netbsd-4-0-RC3, netbsd-4-0-RC2, netbsd-4-0-RC1, netbsd-4-0-1-RELEASE, netbsd-4-0, netbsd-4, matt-mips64-base, matt-mips64, matt-armv6-prevmlocking, matt-armv6-base, hpcarm-cleanup-base, hpcarm-cleanup, cube-autoconf-base, cube-autoconf
Branch point for: matt-armv6, keiichi-mipv6
Changes since 1.30: +3 -3 lines
Diff to previous 1.30 (colored)

allow 0 sized structs in c9x

Revision 1.30 / (download) - annotate - [select for diffs], Mon Oct 23 00:10:29 2006 UTC (6 years, 7 months ago) by christos
Branch: MAIN
Changes since 1.29: +5 -4 lines
Diff to previous 1.29 (colored)

add zero sized array handling. It is a little too chatty now.

Revision 1.29 / (download) - annotate - [select for diffs], Sun Jan 2 10:40:49 2005 UTC (8 years, 4 months ago) by christos
Branch: MAIN
CVS Tags: netbsd-3-base, netbsd-3-1-RELEASE, netbsd-3-1-RC4, netbsd-3-1-RC3, netbsd-3-1-RC2, netbsd-3-1-RC1, netbsd-3-1-1-RELEASE, netbsd-3-1, netbsd-3-0-RELEASE, netbsd-3-0-RC6, netbsd-3-0-RC5, netbsd-3-0-RC4, netbsd-3-0-RC3, netbsd-3-0-RC2, netbsd-3-0-RC1, netbsd-3-0-3-RELEASE, netbsd-3-0-2-RELEASE, netbsd-3-0-1-RELEASE, netbsd-3-0, netbsd-3, chap-midi-nbase, chap-midi-base, chap-midi, abandoned-netbsd-4-base, abandoned-netbsd-4
Changes since 1.28: +4 -4 lines
Diff to previous 1.28 (colored)

say from what type to what time we are converting.

Revision 1.28 / (download) - annotate - [select for diffs], Tue Aug 3 12:11:54 2004 UTC (8 years, 9 months ago) by yamt
Branch: MAIN
Changes since 1.27: +3 -2 lines
Diff to previous 1.27 (colored)

recognize C99 array initializer designators.  PR/18896.

Revision 1.27 / (download) - annotate - [select for diffs], Sun Jun 20 22:20:16 2004 UTC (8 years, 11 months ago) by jmc
Branch: MAIN
Changes since 1.26: +6 -2 lines
Diff to previous 1.26 (colored)

Completely rework how tools/compat is done. Purge all uses/references to
_NETBSD_SOURCE as this makes cross building from older/newer versions of
NetBSD harder, not easier (and also makes the resulting tools 'different')

Wrap all required code with the inclusion of nbtool_config.h, attempt to
only use POSIX code in all places (or when reasonable test w. configure and
provide definitions: ala u_int, etc).

Reviewed by lukem. Tested on FreeBSD 4.9, Redhat Linux ES3, NetBSD 1.6.2 x86
NetBSD current (x86 and amd64) and Solaris 9.

Fixes PR's: PR#17762 PR#25944

Revision 1.26 / (download) - annotate - [select for diffs], Sat Nov 2 20:14:10 2002 UTC (10 years, 6 months ago) by perry
Branch: MAIN
CVS Tags: netbsd-2-0-base, fvdl_fs64_base
Branch point for: netbsd-2-0
Changes since 1.25: +8 -2 lines
Diff to previous 1.25 (colored)

add a comment on c99ism noting that the logic might be wrong but we
haven't yet decided on what combinations of -s and -S really are
intended to mean yet.

Revision 1.25 / (download) - annotate - [select for diffs], Sat Nov 2 20:09:27 2002 UTC (10 years, 6 months ago) by perry
Branch: MAIN
Changes since 1.24: +23 -2 lines
Diff to previous 1.24 (colored)

add c99ism(), by analogy to gnuism(), for c99 construct (un)warnings

Revision 1.24 / (download) - annotate - [select for diffs], Tue Oct 22 22:50:11 2002 UTC (10 years, 7 months ago) by christos
Branch: MAIN
Changes since 1.23: +3 -2 lines
Diff to previous 1.23 (colored)

add support for ({}) gcc shit.

Revision 1.23 / (download) - annotate - [select for diffs], Tue Oct 22 18:15:00 2002 UTC (10 years, 7 months ago) by christos
Branch: MAIN
Changes since 1.22: +3 -2 lines
Diff to previous 1.22 (colored)

add C9X/GCC compound literal expressions.

Revision 1.22 / (download) - annotate - [select for diffs], Tue Oct 22 13:48:50 2002 UTC (10 years, 7 months ago) by christos
Branch: MAIN
Changes since 1.21: +3 -2 lines
Diff to previous 1.21 (colored)

add variable array dimension.

Revision 1.21 / (download) - annotate - [select for diffs], Tue Oct 22 13:31:34 2002 UTC (10 years, 7 months ago) by christos
Branch: MAIN
Changes since 1.20: +4 -2 lines
Diff to previous 1.20 (colored)

handle gcc __FUNCTION__ and C9X __func__

Revision 1.20 / (download) - annotate - [select for diffs], Mon Oct 21 21:14:51 2002 UTC (10 years, 7 months ago) by christos
Branch: MAIN
Changes since 1.19: +5 -2 lines
Diff to previous 1.19 (colored)

support for c99 style and gnu style structure and union named initializers.

Revision 1.19 / (download) - annotate - [select for diffs], Fri Sep 13 14:59:24 2002 UTC (10 years, 8 months ago) by christos
Branch: MAIN
Changes since 1.18: +6 -5 lines
Diff to previous 1.18 (colored)

Minimize diffs with my C99 capable version [this commit does not include
C99 support.

- turn lerror() into a macro so that the filename and the line number of the
  error are printed before we abort.
- recurse in type printing to provide the proper type name.

Revision 1.18 / (download) - annotate - [select for diffs], Thu Mar 7 20:17:37 2002 UTC (11 years, 2 months ago) by tv
Branch: MAIN
CVS Tags: netbsd-1-6-base, netbsd-1-6-RELEASE, netbsd-1-6-RC3, netbsd-1-6-RC2, netbsd-1-6-RC1, netbsd-1-6-PATCH002-RELEASE, netbsd-1-6-PATCH002-RC4, netbsd-1-6-PATCH002-RC3, netbsd-1-6-PATCH002-RC2, netbsd-1-6-PATCH002-RC1, netbsd-1-6-PATCH002, netbsd-1-6-PATCH001-RELEASE, netbsd-1-6-PATCH001-RC3, netbsd-1-6-PATCH001-RC2, netbsd-1-6-PATCH001-RC1, netbsd-1-6-PATCH001, netbsd-1-6
Changes since 1.17: +9 -9 lines
Diff to previous 1.17 (colored)

Rename `basename' as `lbasename' so as not to confuse with the libgen.h
prototyped function of the same name.

Revision 1.17 / (download) - annotate - [select for diffs], Thu Jan 31 19:36:54 2002 UTC (11 years, 3 months ago) by tv
Branch: MAIN
Changes since 1.16: +3 -3 lines
Diff to previous 1.16 (colored)

Protect __RCSID and __COPYRIGHT from being invoked if not defined.

Revision 1.16 / (download) - annotate - [select for diffs], Thu Dec 13 23:56:00 2001 UTC (11 years, 5 months ago) by augustss
Branch: MAIN
Changes since 1.15: +5 -8 lines
Diff to previous 1.15 (colored)

Don't use fd_set to keep track of errors to ignore.  Doing so relies on
overriding FD_SETSIZE.  Not overriding it makes it stomp all over memory
(which caused the debug outputs we've seen lately).
It used to work, but toolification of lint broke it.

Revision 1.15 / (download) - annotate - [select for diffs], Mon May 28 12:40:37 2001 UTC (11 years, 11 months ago) by lukem
Branch: MAIN
Changes since 1.14: +9 -68 lines
Diff to previous 1.14 (colored)

cleanup (prior to more adding more features):
- convert to ANSI KNF
- remove trailing whitespace
- translate some comments from german into english

code compiles and runs clean, and tested by running "make lint" against
xlint source using previous and this lint produces same results.

Revision 1.14 / (download) - annotate - [select for diffs], Thu May 24 12:10:39 2001 UTC (12 years ago) by lukem
Branch: MAIN
Changes since 1.13: +3 -2 lines
Diff to previous 1.13 (colored)

support // comments if -g is given

Revision 1.13 / (download) - annotate - [select for diffs], Sat Feb 24 00:43:51 2001 UTC (12 years, 3 months ago) by cgd
Branch: MAIN
Changes since 1.12: +2 -2 lines
Diff to previous 1.12 (colored)

fix broken NetBSD RCS id tags

Revision 1.12 / (download) - annotate - [select for diffs], Thu Jul 6 01:09:20 2000 UTC (12 years, 10 months ago) by christos
Branch: MAIN
Changes since 1.11: +38 -10 lines
Diff to previous 1.11 (colored)

- support for -X flag
- support for -m flag
- print the error number in each message

Revision 1.11 / (download) - annotate - [select for diffs], Mon Jul 27 13:50:47 1998 UTC (14 years, 10 months ago) by mycroft
Branch: MAIN
CVS Tags: wrstuden-devbsize-base, wrstuden-devbsize-19991221, wrstuden-devbsize, netbsd-1-5-base, netbsd-1-5-RELEASE, netbsd-1-5-PATCH003, netbsd-1-5-PATCH002, netbsd-1-5-PATCH001, netbsd-1-5-BETA2, netbsd-1-5-BETA, netbsd-1-5-ALPHA2, netbsd-1-5, netbsd-1-4-base, netbsd-1-4-RELEASE, netbsd-1-4-PATCH003, netbsd-1-4-PATCH002, netbsd-1-4-PATCH001, netbsd-1-4, minoura-xpg4dl-base, minoura-xpg4dl, comdex-fall-1999-base, comdex-fall-1999
Changes since 1.10: +5 -5 lines
Diff to previous 1.10 (colored)

Fix a recurring typo: comparision -> comparison.

Revision 1.10 / (download) - annotate - [select for diffs], Sun Feb 22 15:40:39 1998 UTC (15 years, 3 months ago) by christos
Branch: MAIN
Changes since 1.9: +3 -2 lines
Diff to previous 1.9 (colored)

WARNSify

Revision 1.9 / (download) - annotate - [select for diffs], Mon Nov 3 22:36:41 1997 UTC (15 years, 6 months ago) by cgd
Branch: MAIN
Changes since 1.8: +4 -2 lines
Diff to previous 1.8 (colored)

implement (hack in) symbol (function and variable) renaming, so that
the function renaming tricks currently needed by libc can be tolerated
by lint.  This needs some cleanup, but it appears to work.

Revision 1.8 / (download) - annotate - [select for diffs], Mon Oct 2 17:37:00 1995 UTC (17 years, 7 months ago) by jpo
Branch: MAIN
CVS Tags: netbsd-1-3-base, netbsd-1-2-base, netbsd-1-2-RELEASE, netbsd-1-2-PATCH001, netbsd-1-2-BETA, netbsd-1-2, netbsd-1-1-base, netbsd-1-1-RELEASE, netbsd-1-1-PATCH001, netbsd-1-1
Branch point for: netbsd-1-3
Changes since 1.7: +3 -3 lines
Diff to previous 1.7 (colored)

removed some dubious warnings about conversion of constant operands of
bitwise operators

Revision 1.7 / (download) - annotate - [select for diffs], Mon Oct 2 17:29:49 1995 UTC (17 years, 7 months ago) by jpo
Branch: MAIN
Changes since 1.6: +3 -3 lines
Diff to previous 1.6 (colored)

LINTED and CONSTCOND are now valid up to the next end of a
global or local declaration/definition/statement. Originally they were
valid on the current and next line, which made it hard to suppress
warnings in constructs with more then one line.

LONGLONG can now be used to suppress errors or warnings in the next
declaration, definition or statement.

Revision 1.6 / (download) - annotate - [select for diffs], Mon Oct 2 17:22:48 1995 UTC (17 years, 7 months ago) by jpo
Branch: MAIN
Changes since 1.5: +3 -3 lines
Diff to previous 1.5 (colored)

some minor bug fixes

Revision 1.5 / (download) - annotate - [select for diffs], Mon Oct 2 17:21:30 1995 UTC (17 years, 7 months ago) by jpo
Branch: MAIN
Changes since 1.4: +12 -5 lines
Diff to previous 1.4 (colored)

prototypes override old style function definitions
this is a gnu extension to ansi c

Revision 1.4 / (download) - annotate - [select for diffs], Mon Oct 2 17:19:01 1995 UTC (17 years, 7 months ago) by jpo
Branch: MAIN
Changes since 1.3: +5 -7 lines
Diff to previous 1.3 (colored)

__{const,signed,volatile}{__,} added
const, signed and volatile are disabled with -t

Revision 1.3 / (download) - annotate - [select for diffs], Mon Oct 2 17:14:17 1995 UTC (17 years, 7 months ago) by jpo
Branch: MAIN
Changes since 1.2: +80 -45 lines
Diff to previous 1.2 (colored)

added inline keywords
"inline" is enabled by -g, "__inline" and "__inline__" are always available

Revision 1.2 / (download) - annotate - [select for diffs], Mon Jul 3 21:24:04 1995 UTC (17 years, 10 months ago) by cgd
Branch: MAIN
Changes since 1.1: +3 -3 lines
Diff to previous 1.1 (colored)

RCS id cleanup

Revision 1.1 / (download) - annotate - [select for diffs], Mon Jul 3 20:56:36 1995 UTC (17 years, 10 months ago) by cgd
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.




CVSweb <webmaster@jp.NetBSD.org>