Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 30 Oct 2011 20:06:59 +0400
From:      Lev Serebryakov <lev@FreeBSD.org>
To:        hackers@freebsd.org
Subject:   How to remopve "volatile" qualifier from pointer without warning from gcc?
Message-ID:  <1598895785.20111030200659@serebryakov.spb.ru>

next in thread | raw e-mail | index | archive | help
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...

--=20
// Black Lion AKA Lev Serebryakov <lev@FreeBSD.org>




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1598895785.20111030200659>