Kaydet (Commit) 43a33ef6 authored tarafından Tor Lillqvist's avatar Tor Lillqvist

WaE: passing argument discards qualifiers from pointer target type

expected 'void *' but argument is of type 'volatile int *'

errno is volatile on Android, and apparently it is not OK to pass the
address of a volatile valye to a function expecting void * in their
gcc version.
üst 3cbd8c24
......@@ -481,6 +481,7 @@ static void ChildStatusProc(void *pData)
{
/* Child */
int chstatus = 0;
int errno_copy;
if (channel[0] != -1) close(channel[0]);
......@@ -558,7 +559,8 @@ static void ChildStatusProc(void *pData)
OSL_TRACE("ChildStatusProc : starting '%s' failed",data.m_pszArgs[0]);
/* if we reach here, something went wrong */
if ( !safeWrite(channel[1], &errno, sizeof(errno)) )
errno_copy = errno;
if ( !safeWrite(channel[1], &errno_copy, sizeof(errno_copy)) )
OSL_TRACE("sendFdPipe : sending failed (%s)",strerror(errno));
if ( channel[1] != -1 )
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment