]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
scripts/sortextable: suppress warning: `relocs_size' may be used uninitialized
authorTim Gardner <tim.gardner@canonical.com>
Mon, 13 Oct 2014 22:54:20 +0000 (15:54 -0700)
committerJiri Slaby <jslaby@suse.cz>
Tue, 23 Jun 2015 17:12:37 +0000 (19:12 +0200)
commitf0e943882cea7c762f8a205f8e4b65483ff1898b
tree28a0eaade1ab6b4998f0cdfd8f839aeb8c46ee5a
parentaa826bb1953a0a40b460e053efcf9c5f8cab554b
scripts/sortextable: suppress warning: `relocs_size' may be used uninitialized

commit 7cbc0ea79da2cbe70d8da9319895f07f872a3190 upstream.

In file included from scripts/sortextable.c:194:0:
scripts/sortextable.c: In function `main':
scripts/sortextable.h:176:3: warning: `relocs_size' may be used uninitialized in this function [-Wmaybe-uninitialized]
   memset(relocs, 0, relocs_size);
   ^
scripts/sortextable.h:106:6: note: `relocs_size' was declared here
  int relocs_size;
      ^
In file included from scripts/sortextable.c:192:0:
scripts/sortextable.h:176:3: warning: `relocs_size' may be used uninitialized in this function [-Wmaybe-uninitialized]
   memset(relocs, 0, relocs_size);
   ^
scripts/sortextable.h:106:6: note: `relocs_size' was declared here
  int relocs_size;
      ^

gcc 4.9.1

Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
Reviewed-by: Jamie Iles <jamie.iles@oracle.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
scripts/sortextable.h