We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8362fa5 commit 87a1027Copy full SHA for 87a1027
libc/src/sys/statvfs/linux/statfs_utils.h
@@ -26,6 +26,11 @@ using LinuxStatFs = statfs;
26
#endif
27
28
LIBC_INLINE cpp::optional<LinuxStatFs> linux_statfs(const char *path) {
29
+#ifdef __clang__
30
+ // Disable pattern filling for result buffer: this struct is to be populated
31
+ // by the syscall.
32
+ [[clang::uninitialized]]
33
+#endif
34
LinuxStatFs result;
35
// On 32-bit platforms, original statfs cannot handle large file systems.
36
// In such cases, SYS_statfs64 is defined and should be used.
0 commit comments