Turn on -Wdecl by default.
commitaad20c6c1fbf0ca97928ed673b35c0143823fd1b
authorJosh Triplett <josh@freedesktop.org>
Wed, 13 Jun 2007 20:29:36 +0000 (13 13:29 -0700)
committerJosh Triplett <josh@freedesktop.org>
Wed, 13 Jun 2007 20:29:36 +0000 (13 13:29 -0700)
tree5ec353ed6d0702d57fedb25be52f6fd6d912ccd0
parent606e6c47b33b1621921d57c287e69b0fa8acc975
Turn on -Wdecl by default.

-Wdecl warns about global, non-static symbols with no forward declarations.
Normally, intentionally global functions called by other parts of a program
will have forward declarations, so global symbols without such declarations
often have no use outside the current file and should use static.

Note that to avoid false positives, any source file that declares functions
for export should always include the header file that forward-declares its own
functions.  This also helps for other reasons, such as obtaining any Sparse
annotations declared on the function to use when analyzing calls to it from
within the same source file.

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