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

2011-10-30 Thread mdf
2011/10/30 Lev Serebryakov :
> 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"


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

2011-10-30 Thread Lev Serebryakov
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 

___
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"