How to remopve "volatile" qualifier from pointer without warning from gcc?

Lev Serebryakov lev at
Sun Oct 30 16:07:10 UTC 2011

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...

// Black Lion AKA Lev Serebryakov <lev at>

More information about the freebsd-hackers mailing list