scripts/sortextable: suppress warning: `relocs_size' may be used uninitialized
authorTim Gardner <tim.gardner@canonical.com>
Tue, 24 Nov 2015 08:04:15 +0000 (09:04 +0100)
committerDanny Wood <danwood76@gmail.com>
Tue, 8 Oct 2019 06:51:38 +0000 (07:51 +0100)
commite9b0633a8a86d17092c29d91c18cae1f39f3f5d2
treeabe9c38794768b1dd4326e69214457b4f4405a50
parente99307463a9a36b53fd7023a842bedf990bf6e44
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

Change-Id: I50749f95f1e212ed8c913547bffed14f847b8929
scripts/sortextable.h