summaryrefslogtreecommitdiff
path: root/usr.bin/xlint
AgeCommit message (Collapse)Author
2012-04-08tedu lintJonathan Gray
ok tedu@ guenther@ krw@ espie@ deraadt@
2011-11-08Pass install the -S option to avoid a window where the target isn'tPhilip Guenthe
executable (by mode or content), which can trip up builds with 'make -j' (The generic fix is in share/mk/*; some Makefiles have their own INSTALL lines) ok millert@ deraadt@
2011-09-21remove rcsids which escaped the purge of 2009Jonathan Gray
2011-07-11Only complain about zero-sized structures/unions when in strictMartynas Venckus
ANSI C mode. Based on a diff from Theo.
2011-07-03Update floating-point format specifier checks; the situation hasMartynas Venckus
gotten better. %E, %F, %G are OK to use. Also recognize %a, %A.
2011-06-20Teach lint about %F, %A, %a format specifiers.Martynas Venckus
OK millert@.
2011-06-20Revert rev 1.21 which is superceded by 1.22Todd C. Miller
2011-06-20Prevent lint from warning about %m in C format strings. QuietsTodd C. Miller
false positives when check syslog(3) format strings that use %m. OK tedu@ martynas@
2011-06-18the %m argument as used by syslog does not eat an argument, so skip over it.Ted Unangst
ok martynas
2011-06-09Accept and ignore -M so we can pass the same CPPFLAGS to lint and cpp.Jonathan Gray
Makes the kernel lint target work again. ok martynas@, with input from guenther@
2011-05-31Lint didn't take into account padding of LDOUBLE, LDCOMPLEX,Martynas Venckus
LDIMAGINARY, therefore was doing portability checks against a non-existent architecture. Make psizes of the mentioned types 128-bits for portability checks. (since it's rarer).
2011-05-31Warn on empty non-compound selection statements, such as "if (foo);".Martynas Venckus
- "empty body of the if statement", - "empty body of the else statement". millert@ thought it's useful.
2011-05-31Make tt_domain = 3 (complex), not 1 (real) for the complex typesMartynas Venckus
(COMPLEX, DCOMPLEX, LDCOMPLEX). While at it, _Complex float -> float _Complex since that's the type defined by C99. OK millert@.
2011-05-30Typos: "in in", "prototyp".Martynas Venckus
2011-03-15sanity check, prompted by common work with Florent TribouilloyMarc Espie
ok deraadt@, millert@
2010-12-30Add syslog.h, wchar.h, and wctype.h #includes and functions.Philip Guenthe
ok millert@
2010-09-09nessesary -> necessary.Miod Vallat
2010-07-27Fix compilation on gcc2 platforms, where _Bool and _Complex aren'tPhilip Guenthe
built into the compiler and instead have to be gotten from stdbool.h and complex.h Problem noted by miod@, fix by deraadt@
2010-07-24Teach lint about C99's _Bool and _Complex, plus some related gccPhilip Guenthe
extensions: __real__ and __imag__ operators, the use of '~' for complex conjugation, and 'i' or 'j' as a suffix for complex constants. While this doesn't handle folding and overflow detection for complex constants correctly, it's good enough to make it through libm...and found several bugs once it could do so. "no objections" miod@, krw@
2010-02-03If MACHINE_CPU != MACHINE_ARCH, pass -D__${MACHINE_CPU}__ to the preprocessor.Miod Vallat
ok kettenis@
2007-11-27typos; ok jmc@Martynas Venckus
sys/dev/pci/pciide.c from naddy@
2007-11-26typos; ok jmc@Martynas Venckus
sys/netinet/in_pcb.c and sys/net/bridgestp.c ok henning@ sys/dev/pci/bktr/* ok jakemsr@
2007-10-17remove "unused variable" warningsCharles Longeau
tested by deraadt@ on a gcc2 arch looks ok ray@ ok deraadt@
2007-10-11pcc also knows about quads; ok cloder@Otto Moerbeek
2007-09-24typos; from Pierre RiteauJason McIntyre
2007-09-08Fix false negatives in dealing with unreachable code after calls to __deadChad Loder
functions. Prodded by fgs@, but a different diff than his. "Makes sense" fgs@
2007-09-06Fix typos in comments. No code changesChad Loder
2007-09-05- use a consistent grammatical case for the C comments sectionJason McIntyre
- remove useless brackets - new sentence, new line
2007-09-05Document NORETURN, add it to the directive list and rearrange the entries.Federico G. Schwindt
ok deraadt@.
2007-05-31convert to new .Dd format;Jason McIntyre
2007-05-26More comment typos from Diego Casati. Including winners like funtion, allmost,Kenneth R Westerback
oustside, seqencer, toghether, nessissary, etc.
2007-04-24exeption -> exceptionMiod Vallat
2007-03-21remove extra *p tests, from charles longeauTed Unangst
ok deraadt millert
2007-03-20sort options; sync synopsis and usage();Jason McIntyre
from Igor Sobrado
2006-11-10fix usage messageTheo de Raadt
2006-11-03ouT makefile rules are smarter now, kill a redundant CLEANFILESOtto Moerbeek
2006-10-26Remove an unused variable spotted by lint.Chad Loder
2006-07-09*enty->*ently where applicableMiod Vallat
2006-06-02Rework logic for function argument conversion warnings. Only do certainChad Loder
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.
2006-05-29Get rid of -t (traditional C) option. Some corrections by moritz.Chad Loder
2006-05-29lint has two synopses, so remove -ab from the second one too;Jason McIntyre
2006-05-28Kill the bflag, which was really just used to shut up a useless warningChad Loder
regarding unreachable breaks, we committed a smarter fix for this a while back, so the flag is not needed anymore. Lint will still accept and silently ignore this flag for now.
2006-05-28Kill the -a option for lint, which controlled (inconsistently) warningsChad Loder
regarding narrowing conversions. For now, lint still accepts and ignores the -a option, but soon I will remove it utterly and change the default LINTFLAGS.
2006-05-06use mkstemp, remove races wrt lint1 and cpp.Marc Espie
(check lint1 and cpp code, they use fopen/freopen to open that temp file, and thus will happily overwrite a symlink) okay cloder@
2006-05-05Do not warn when casting a pointer to [unsigned] char *;Otto Moerbeek
discussion with espie@; ok cloder@
2006-05-05Fix SEGV on prototypes containing functions; from NetBSD rev 1.18;Otto Moerbeek
ok cloder@
2006-05-05Fix SEGV on scalar initialization with braces; also found in NetBSDOtto Moerbeek
rev 1.23 as part of a much larger diff. ok cloder@
2006-05-03be smarter about warning for null effects; kills a lot of spuriousOtto Moerbeek
warnings. ok cloder@
2006-04-27print a quad as %lld, not %dOtto Moerbeek
2006-04-27Correctly process comma operator when hunting for "expression has nullOtto Moerbeek
effect" warnings. NetBSD has same fix, I found out after the fact. ok cloder@