diff options
author | Bernd Schubert <bschubert@ddn.com> | 2025-02-10 02:45:42 +0100 |
---|---|---|
committer | Bernd Schubert <bernd@bsbernd.com> | 2025-02-10 08:53:14 +0100 |
commit | dca6e514c81e3ad0ec806f79b774b3707b313f63 (patch) | |
tree | d88b0d2e756abc774cd48b75406342a9327797ab /test | |
parent | 65dfe9c2907157732a1346dd679f126bce86f84f (diff) | |
download | libfuse-dca6e514c81e3ad0ec806f79b774b3707b313f63.tar.gz |
Build fixes for -Og
Cleaning... 18 files.
[35/69] Compiling C object example/passthrough_ll.p/passthrough_ll.c.o
../example/passthrough_ll.c: In function ‘lo_opendir’:
../example/passthrough_ll.c:666:20: warning: ‘fd’ may be used uninitialized [-Wmaybe-uninitialized]
666 | if (fd != -1)
| ^
../example/passthrough_ll.c:637:13: note: ‘fd’ was declared here
637 | int fd;
| ^~
[38/69] Compiling C object test/test_syscalls.p/test_syscalls.c.o
../test/test_syscalls.c: In function ‘test_seekdir’:
../test/test_syscalls.c:804:16: warning: ‘de’ may be used uninitialized [-Wmaybe-uninitialized]
804 | while (de)
| ^~
../test/test_syscalls.c:776:24: note: ‘de’ was declared here
776 | struct dirent *de;
| ^~
These are actually valid.
Signed-off-by: Bernd Schubert <bschubert@ddn.com>
Diffstat (limited to 'test')
-rw-r--r-- | test/test_syscalls.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/test_syscalls.c b/test/test_syscalls.c index 7a2389d..26b2ff2 100644 --- a/test/test_syscalls.c +++ b/test/test_syscalls.c @@ -773,7 +773,7 @@ static int test_seekdir(void) int i; int res; DIR *dp; - struct dirent *de; + struct dirent *de = NULL; start_test("seekdir"); res = create_dir(testdir, testdir_files); |