Turn on -Wcontext by default
commitf7cf688a826df128dc14e787f7bd598b9ab09ad5
authorJosh Triplett <josh@freedesktop.org>
Wed, 6 Sep 2006 18:25:38 +0000 (6 11:25 -0700)
committerJosh Triplett <josh@freedesktop.org>
Thu, 14 Sep 2006 20:21:02 +0000 (14 13:21 -0700)
tree1fd1459c970038f1ab40fe5ca35da121a91ebefb
parent27ff96a96c95d0171f3215458dd5a2ebc4bfafbf
Turn on -Wcontext by default

Context checking currently requires explicitly passing the -Wcontext option.
In a Linux build, this requires passing CF=-Wcontext.  Thus, running people
running sparse over Linux or other software in the default way will not see
context warnings.  Change this by enabling -Wcontext.

While context checking does generate false positives, due to both missing
annotations on kernel functions and insufficiently clever checking in sparse,
the context warnings still do provide useful information and help track down
real bugs.  Furthermore, showing these warnings by default may incite more
people to add annotations or enhance sparse.  As a last resort, -Wno-context
will still work.

Signed-off-by: Josh Triplett <josh@freedesktop.org>
lib.c