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)
committerJon Medhurst <tixy@linaro.org>
Wed, 15 Apr 2015 10:10:47 +0000 (11:10 +0100)
commit99984c61919c62621c62befb490d820cef213b0e
tree4a5d667a4bac9be4f39c216267eb971e39a3676d
parent1248206dd0384a9141501b39bfcc67053fa97ff5
scripts/sortextable: suppress warning: `relocs_size' may be used uninitialized

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>
(cherry picked from commit 7cbc0ea79da2cbe70d8da9319895f07f872a3190)
Signed-off-by: Jon Medhurst <tixy@linaro.org>
scripts/sortextable.h