Re: GCC 4.9 build error child.c:274:14: error: variable 'lastop' might be clobbered by 'longjmp' or 'vfork' [-Werror=clobbered]
Dave Jones <[email protected]>
| Newsgroups | org.kernel.vger.trinity |
|---|---|
| Message-ID | <[email protected]> |
On Mon, Apr 14, 2014 at 11:42:11AM -0700, Vinson Lee wrote: > This build error occurs with GCC 4.9. > > $ gcc --version > gcc (GCC) 4.9.0 20140411 (Red Hat 4.9.0-0.10) > Copyright (C) 2014 Free Software Foundation, Inc. > This is free software; see the source for copying conditions. There is NO > warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. > > $ make > [...] > CC child.o > child.c: In function 'child_process': > child.c:274:14: error: variable 'lastop' might be clobbered by > 'longjmp' or 'vfork' [-Werror=clobbered] > const char *lastop = NULL; > ^ heh, I had a hard disk accident last weekend, so hadn't gotten around to trying 4.9 until this morning. Should be fixed now. Was actually quite surprised this was the only new warning. Dave