Print

Print


/builddir/build/BUILD/xrootd-4.2.3/src/XrdSys/XrdSysDNS.cc: In static member function 'static int XrdSysDNS::getAddrName(const char*, int, char**, char**, char**)':
/builddir/build/BUILD/xrootd-4.2.3/src/XrdSys/XrdSysDNS.cc:187:51: error: dereferencing type-punned pointer will break strict-aliasing rules [-Werror=strict-aliasing]
       int hn = getHostName((struct sockaddr &)ip[i], names, 1, errtxt);
                                                   ^
/builddir/build/BUILD/xrootd-4.2.3/src/XrdSys/XrdSysDNS.cc: In static member function 'static int XrdSysDNS::Host2Dest(const char*, sockaddr&, char**)':
/builddir/build/BUILD/xrootd-4.2.3/src/XrdSys/XrdSysDNS.cc:522:47: error: dereferencing type-punned pointer will break strict-aliasing rules [-Werror=strict-aliasing]
    if (!getHostAddr(hbuff, (struct sockaddr &)InetAddr, errtxt)) return 0;
                                               ^~~~~~~~
/builddir/build/BUILD/xrootd-4.2.3/src/XrdSys/XrdSysDNS.cc: In static member function 'static int XrdSysDNS::Host2IP(const char*, unsigned int*)':
/builddir/build/BUILD/xrootd-4.2.3/src/XrdSys/XrdSysDNS.cc:550:47: error: dereferencing type-punned pointer will break strict-aliasing rules [-Werror=strict-aliasing]
    if (!getHostAddr(hname, (struct sockaddr &)InetAddr)) return 0;
                                               ^~~~~~~~

You can view, comment on, or merge this pull request online at:

  https://github.com/xrootd/xrootd/pull/336

Commit Summary

File Changes

Patch Links:


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