The latest updates to glibc headers adds __nonnull to the fclose()
Declaration in old version:
extern int fclose (FILE *__stream);
Declaration in new version:
extern int fclose (FILE *__stream) __nonnull ((1));
This change causes a compilation error in xrootd:
/builddir/build/BUILD/xrootd-5.5.5/src/XrdTls/XrdTlsTempCA.cc:54:48: error: ignoring attributes on template argument 'int (*)(FILE*)' [-Werror=ignored-attributes]
54 | typedef std::unique_ptr<FILE, decltype(&fclose)> file_smart_ptr;
| ^
This commit rewrites the code so the error is not triggered.
https://github.com/xrootd/xrootd/pull/2012
(1 file)
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.
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