Skip to contentSkip to conversation

tools/livepatch: initialise j to 0 to make some versions of gcc happy

PATCH Dongli Zhang 2 participants 2 messages Jun 16, 2016 – Jun 17, 2016

lore
Share & tools
lore
#0 lore raw
Quoted 13 lines

I suggest pasting in Olaf's exact error message here.

To avoid extra round trip, I propose updating the commit message as followed:

Initialise j to 0 to make some versions of gcc (e.g., gcc4.5/4.3)
happy to
avoid compilation error by commit
beba3693f7243e68bbe31fe3794da91068eeea5b.

Failure manifests with gcc 4.5 as:

Quoted 8 lines

[ 153s] cc1: warnings being treated as errors [ 153s] xen-livepatch.c: In function 'main':
[ 153s] xen-livepatch.c:415:12: error: 'j' may be used
uninitialized in this function

    [  153s] make[3]: *** [xen-livepatch.o] Error 1

If you agree with this I will handle the updating while doing my next sweep.

Sure. Feel free to update the commit message.

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel

#1 lore raw
Quoted 19 lines · Dongli Zhang
Quoted 19 lines

I suggest pasting in Olaf's exact error message here.

To avoid extra round trip, I propose updating the commit message as followed:

Initialise j to 0 to make some versions of gcc (e.g., gcc4.5/4.3)
happy to
avoid compilation error by commit
beba3693f7243e68bbe31fe3794da91068eeea5b.

Failure manifests with gcc 4.5 as:

[ 153s] cc1: warnings being treated as errors [ 153s] xen-livepatch.c: In function 'main':
[ 153s] xen-livepatch.c:415:12: error: 'j' may be used
uninitialized in this function

    [  153s] make[3]: *** [xen-livepatch.o] Error 1
Quoted 5 lines
Quoted 2 lines

If you agree with this I will handle the updating while doing my next sweep.

Sure. Feel free to update the commit message.

Thanks for confirming. This patch is now acked and queued.

Wei.

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel