Skip to content

Commit

Permalink
cmake: avoid -Wnonnull warning in HAVE_FSETXATTR_5 detection
Browse files Browse the repository at this point in the history
Seen in Android 21/35 CI jobs:
```
curl/CMake/CurlTests.c:315:16: warning: null passed to a callee that requires a non-null argument [-Wnonnull]
   315 |   fsetxattr(0, 0, 0, 0, 0);
       |                ^
 1 warning generated.
```
Ref: https://github.com/curl/curl/actions/runs/13460225795/job/37613494183#step:9:5978

Follow-up to bd9f9b0 curl#16377
Closes curl#16427
  • Loading branch information
vszakats committed Feb 21, 2025
1 parent d4896d9 commit ea07a64
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CMake/CurlTests.c
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,7 @@ int main(void)
#include <sys/xattr.h> /* header from libc, not from libattr */
int main(void)
{
fsetxattr(0, 0, 0, 0, 0);
fsetxattr(0, "", 0, 0, 0);
return 0;
}
#endif
Expand Down

0 comments on commit ea07a64

Please sign in to comment.