Re: [Xen-devel] [PATCH] tools: fix compile errors with -Og

2016-04-22 Thread Wei Liu
On Tue, Apr 12, 2016 at 03:55:19PM +0200, Olaf Hering wrote: > At least gcc-4.8 and older fails to recognize that err is always > initialized, the build fails: > xc_cpupool.c: In function 'xc_cpupool_removecpu': > xc_cpupool.c:168:5: error: 'err' may be used uninitialized in this function > [-

Re: [Xen-devel] [PATCH] tools: fix compile errors with -Og

2016-04-13 Thread Dario Faggioli
On Tue, 2016-04-12 at 15:55 +0200, Olaf Hering wrote: > At least gcc-4.8 and older fails to recognize that err is always > initialized, the build fails: >   xc_cpupool.c: In function 'xc_cpupool_removecpu': >   xc_cpupool.c:168:5: error: 'err' may be used uninitialized in this > function [-Werror=m