So, I'm trying to build the jksrc on an Ubuntu 10.04 machine with the latest 
gcc that Ubuntu supports.  I'm getting the following error:

gcc -O -g  -Wall -Werror -Wformat -Wimplicit -Wreturn-type -Wuninitialized 
-D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_GNU_SOURCE -DMACHTYPE_X86_64   
-Wall -Werror -Wformat -Wimplicit -Wreturn-type -Wuninitialized -I../inc 
-I../../inc -I../../../inc -I../../../../inc -I../../../../../inc  -o 
pipeline.o -c pipeline.c
cc1: warnings being treated as errors
pipeline.c: In function ‘waitOnExec’:
pipeline.c:351: error: ignoring return value of ‘read’, declared with attribute 
warn_unused_result
make: *** [pipeline.o] Error 1

This WAS a known error, fixed in May.  And I have the fixed source code:

static void waitOnExec(struct plProc *proc)
/* wait on exec to happen on this process */
{
// execPipeChild will get EOF when exec happens
char buf[1];
(void)read(proc->execPipeParent, buf, sizeof(buf));
safeClose(&proc->execPipeParent);
}


So, any idea WHY I'm getting this error?

TIA,

Greg

_______________________________________________
Genome maillist  -  [email protected]
https://lists.soe.ucsc.edu/mailman/listinfo/genome

Reply via email to