2011/10/30 Lev Serebryakov <l...@freebsd.org>:
> Hello, Hackers.
>
>  I need to pass "volatile void *" to API function, which takes
> "void*". gcc (on FreeBSD 8.2) emits warning, and as in FreeBSD-styed
> code warnings are treated as errors, program could not be built.
>
>  Manual casting gives warning, too...

See the __DEVOLATILE() hack that will do sufficient casting to silence
the compiler.  As with any compiler warning, silencing it incorrectly
comes with a risk...

Cheers,
matthew
_______________________________________________
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "freebsd-hackers-unsubscr...@freebsd.org"

Reply via email to