sahib / rmlint

Extremely fast tool to remove duplicates and other lint from your filesystem
http://rmlint.rtfd.org
GNU General Public License v3.0
1.86k stars 128 forks source link

scons: Do not use headers with CheckFunc #609

Closed fweimer-rh closed 1 year ago

fweimer-rh commented 1 year ago

The header parameter disables the creation of fake prototypes, and CheckFunc always calls the function with no arguments, so the check fails. This presently works by accident because compilers ignore the second #include in '#include <sys/types.h>#include <sys/xattr.h>' (so no prototype gets declared) and supply an implicit function declaration which allows calls with any number of arguments.

Related to:

cebtenzzre commented 1 year ago

I'm aware of this issue. This is the same as PR #605 from a month ago.