Print

Print


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

  Changed paths:
    M src/XrdOuc/XrdOucPsx.cc

  Log Message:
  -----------
  Use correct size for struct

The fix for the gcc 11 compiler warning in commit
8f36753d46c183aa89058219e36e9a2980afd250 is incorrect.
Placing the sizeof statement in parenthesis does not correct the bug,
it just obfuscates the code so that the compiler doesn't see it.

The correct fix is to give the unnamed struct a name so that the
sizeof the struct can be used in the calculation.


  Commit: 67a2cec5c065bdbe9466f8d292861d7ac94f3d7a
      https://github.com/xrootd/xrootd/commit/67a2cec5c065bdbe9466f8d292861d7ac94f3d7a
  Author: Andrew Hanushevsky <[log in to unmask]>
  Date:   2020-12-08 (Tue, 08 Dec 2020)

  Changed paths:
    M src/XrdOuc/XrdOucPsx.cc

  Log Message:
  -----------
  Merge pull request #1355 from ellert/better-fix

Use correct size for struct


Compare: https://github.com/xrootd/xrootd/compare/7bc000e02928...67a2cec5c065

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