]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Hide the declaration of ffs() if an inline ffs() is implemented.
authorbde <bde@FreeBSD.org>
Mon, 14 Nov 1994 14:56:46 +0000 (14:56 +0000)
committerbde <bde@FreeBSD.org>
Mon, 14 Nov 1994 14:56:46 +0000 (14:56 +0000)
commit8332f818bd69473bb342bdbdb95095e8423161c3
treec9955a7568dda1e25250b461bc469235d98e25b0
parent63ee9096f28a613cf2124ae39365e0761dded25a
Hide the declaration of ffs() if an inline ffs() is implemented.

I couldn't find a better way to avoid compiler warnings about
redundant and/or inconsistent declaration of ffs().  I'd like to
be able to declare prototypes in general headers without committing
to implementing them as `static inline' or `extern', but there
seems to be no way to do this with gcc-2.6.1.  E.g.,

int foo(void);
static __inline int foo(void) { return 1; }

causes a warning about the linkage mismatch, while the opposite
order causes a warning about the redundant declaration.
sys/libkern/libkern.h
sys/sys/libkern.h