On Tue, 2009-08-18 at 19:13 +0530, Reang Su wrote:
> Hi ,
>  
> I'm stuck while removing E_STATIC_UNUSED LINTTAG from my driver
> Makefile.
>  
> Once I removed this LINTTAG in my Makefile I get following warning.
> xxx.h", line 85: warning: static unused: __hal_ifmsg_is_manager_up
> (E_STATIC_UNUSED)

Putting a static declaration in a header file is bad form; anything that
includes this header file but doesn't happen to use this static symbol
will end up with a lint warning.

The fix is to move the static declaration to the .c file where it's
actually defined and used.

-Seb


_______________________________________________
driver-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/driver-discuss

Reply via email to