From d2f5906da4ae37a41ae257e5308d50e19689877b Mon Sep 17 00:00:00 2001 From: Frank Busse Date: Fri, 18 Mar 2022 09:46:14 +0000 Subject: POSIX runtime: fstatat: check for nonnull path APIs --- cmake/fstatat.c | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 cmake/fstatat.c (limited to 'cmake') diff --git a/cmake/fstatat.c b/cmake/fstatat.c new file mode 100644 index 00000000..58aa9301 --- /dev/null +++ b/cmake/fstatat.c @@ -0,0 +1,9 @@ +#include +#include +#include + +int main(void) { + struct stat buf; + #pragma GCC diagnostic error "-Wnonnull" + fstatat(0, NULL, &buf, 0); +} -- cgit 1.4.1