Hi Grey
This compiles fine for me on ubunbtu 10.4 with
gcc version 4.4.3 (Ubuntu 4.4.3-4ubuntu5)
So this seems very odd that you would get this.
You can always edit inc/common.mk to delete the -Werror and keep
moving forward.
mark
Gregory Dougherty <[email protected]> writes:
> 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
_______________________________________________
Genome maillist - [email protected]
https://lists.soe.ucsc.edu/mailman/listinfo/genome