Date: Tue, 15 Dec 1998 18:29:33 +1100 From: Bruce Evans <bde@zeta.org.au> To: brian@Awfulhak.org, dillon@apollo.backplane.com Cc: committers@FreeBSD.ORG Subject: Re: best way to fix function mismatch warning Message-ID: <199812150729.SAA20750@godzilla.zeta.org.au>
next in thread | raw e-mail | index | archive | help
[This may be a duplicate] >:> So, to get rid of the warning do we (a) cast the function pointer >:> in the pci_map_int() call to the correct type or (b) make the function >:> (in dev/vx/*) take a void * and then reassign the variable to a pointer >:> of the right type inside it? Or (c) some other choice that I haven't >:> thought of ? >: >:(a) as there's no overhead.... alternatively, you could try (c) ;-) > > There's no overhead for b either, GCC detects the alias and optimizes > it out. Except of course when the alias isn't actually an alias -- then (b) may work, but (a) will not work. Bruce To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199812150729.SAA20750>