scripts/sortextable: suppress warning: `relocs_size' may be used uninitialized
authorTim Gardner <tim.gardner@canonical.com>
Wed, 15 Apr 2015 10:24:37 +0000 (11:24 +0100)
committerAlex Shi <alex.shi@linaro.org>
Wed, 15 Apr 2015 12:03:08 +0000 (20:03 +0800)
commit1e8ac3b467f02f239d18135a91a67a00d971242b
treeddf0c1d53f8afba0261dcc35c0def1055c576a92
parentb7a1b22726f0618b4e7adcdb12266ed898a550c9
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