Print

Print


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.
You can view, comment on, or merge this pull request online at:

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

-- Commit Summary --

  * Use correct size for struct

-- File Changes --

    M src/XrdOuc/XrdOucPsx.cc (4)

-- Patch Links --

https://github.com/xrootd/xrootd/pull/1355.patch
https://github.com/xrootd/xrootd/pull/1355.diff

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/xrootd/xrootd/pull/1355

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