diff options
author | Rob Landley <rob@landley.net> | 2013-01-14 05:25:19 -0600 |
---|---|---|
committer | Rob Landley <rob@landley.net> | 2013-01-14 05:25:19 -0600 |
commit | 1a33c6b07a20af27b23f62f5c88a422eb96e463c (patch) | |
tree | 837a933d538efe10403917070be632b293c58e53 /toys/other/losetup.c | |
parent | bccb6db20d59066455cb7bbcf14729bc71abbc71 (diff) | |
download | toybox-1a33c6b07a20af27b23f62f5c88a422eb96e463c.tar.gz |
Silence deeply stupid gcc warning. (First non-declaration line of function: if (file) ffd = open(); at end of of function: if (file) close(ffd); "file" is an argument to the function and nothing else assigns to it. gcc warning on that close, "ffd may be used uninitialized!" _HOW_?)
Diffstat (limited to 'toys/other/losetup.c')
-rw-r--r-- | toys/other/losetup.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/toys/other/losetup.c b/toys/other/losetup.c index b455f355..d279c2ad 100644 --- a/toys/other/losetup.c +++ b/toys/other/losetup.c @@ -61,7 +61,7 @@ todo: basic /dev file association static void loopback_setup(char *device, char *file) { struct loop_info64 *loop = (void *)(toybuf+32); - int lfd = -1, ffd; + int lfd = -1, ffd = ffd; unsigned flags = toys.optflags; // Open file (ffd) and loop device (lfd) |