diff options
author | Andrew Morton <akpm@linux-foundation.org> | 2007-07-16 08:41:03 +0200 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-07-16 18:05:47 +0200 |
commit | 4d3b573ad9af85b6df104044f6fff05f04349db2 (patch) | |
tree | 3cf744f8cb4bd5c4fee92799b0c8daa5bebc52f4 /fs/binfmt_elf.c | |
parent | revert "vanishing ioctl handler debugging" (diff) | |
download | linux-4d3b573ad9af85b6df104044f6fff05f04349db2.tar.xz linux-4d3b573ad9af85b6df104044f6fff05f04349db2.zip |
binfmt_elf warning fix
fs/binfmt_elf.c: In function 'load_elf_binary':
fs/binfmt_elf.c:1002: warning: 'interp_map_addr' may be used uninitialized in this function
The compiler (gcc-4.1.0) is correct, but it failed to notice that we didn't
use the resulting value.
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'fs/binfmt_elf.c')
-rw-r--r-- | fs/binfmt_elf.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/binfmt_elf.c b/fs/binfmt_elf.c index 5cfa735639ae..a27e42bf3400 100644 --- a/fs/binfmt_elf.c +++ b/fs/binfmt_elf.c @@ -999,7 +999,7 @@ static int load_elf_binary(struct linux_binprm *bprm, struct pt_regs *regs) elf_entry = load_aout_interp(&loc->interp_ex, interpreter); } else { - unsigned long interp_map_addr; /* unused */ + unsigned long uninitialized_var(interp_map_addr); elf_entry = load_elf_interp(&loc->interp_elf_ex, interpreter, |