Print

Print


Hi,

I'm trying to build latest xrootd on my ubuntu machine (14.10), shipping with gcc 4.9.1. The build fails with the following error:

/home/sbrochet/build/xrootd-4.1.1/src/XrdXrootd/XrdXrootdJob.cc: In member function ‘void XrdXrootdJob2Do::delClient(XrdXrootdResponse*)’:
/home/sbrochet/build/xrootd-4.1.1/src/XrdXrootd/XrdXrootdJob.cc:261:69: error: array subscript is above array bounds [-Werror=array-bounds]
           {for (j = i+1; j < numClients; j++) Client[i++] = Client[j];
                                                                     ^
/home/sbrochet/build/xrootd-4.1.1/src/XrdXrootd/XrdXrootdJob.cc: In member function ‘int XrdXrootdJob2Do::verClient(int)’:
/home/sbrochet/build/xrootd-4.1.1/src/XrdXrootd/XrdXrootdJob.cc:327:71: error: array subscript is above array bounds [-Werror=array-bounds]
            for (j = i+1; j < numClients; j++,k++) Client[k] = Client[j];
                                                                       ^

Thanks


Reply to this email directly or view it on GitHub.



Use REPLY-ALL to reply to list

To unsubscribe from the XROOTD-DEV list, click the following link:
https://listserv.slac.stanford.edu/cgi-bin/wa?SUBED1=XROOTD-DEV&A=1