Print

Print


  Branch: refs/heads/master
  Home:   https://github.com/xrootd/xrootd
  Commit: 8f36753d46c183aa89058219e36e9a2980afd250
      https://github.com/xrootd/xrootd/commit/8f36753d46c183aa89058219e36e9a2980afd250
  Author: Michal Simon <[log in to unmask]>
  Date:   2020-12-08 (Tue, 08 Dec 2020)

  Changed paths:
    M src/XrdOuc/XrdOucPsx.cc

  Log Message:
  -----------
  Fix fedora rawhide build.

/root/rpmbuild/BUILD/xrootd/xrootd/src/XrdOuc/XrdOucPsx.cc:735:35: error: expression does not compute the number of elements in this array; element type is 'XrdOucPsx::ParseSet(XrdSysError*, XrdOucStream&)::<unnamed struct>', not 'const char*' [-Werror=sizeof-array-div]
8701  735 |     int i, numopts = sizeof(Sopts)/sizeof(const char *);
8702      |                      ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~
8703/root/rpmbuild/BUILD/xrootd/xrootd/src/XrdOuc/XrdOucPsx.cc:735:36: note: add parentheses around 'sizeof (const char*)' to silence this warning
8704  735 |     int i, numopts = sizeof(Sopts)/sizeof(const char *);
8705      |                                    ^~~~~~~~~~~~~~~~~~~~
8706      |                                    (                   )
8707/root/rpmbuild/BUILD/xrootd/xrootd/src/XrdOuc/XrdOucPsx.cc:706:66: note: array 'Sopts' declared here
8708  706 |     static struct {const char *Sopt; const char *Copt; int isT;} Sopts[]  =
8709      |                                                                  ^~~~~
8710cc1plus: all warnings being treated as errors

########################################################################
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