summaryrefslogtreecommitdiff
path: root/util
diff options
context:
space:
mode:
authorAnatol Pomozov <anatol.pomozov@gmail.com>2015-07-10 17:30:01 -0700
committerStefan Reinauer <stefan.reinauer@coreboot.org>2015-07-11 04:47:38 +0200
commit8cce701b56d8c6f780a3d77639dc3328acfacfbe (patch)
tree0f11528990c7dd6ad9564eedbbac41470cfe06b3 /util
parentbd1499d338659b5f483793e96c7e0f43c1c11f4d (diff)
downloadcoreboot-8cce701b56d8c6f780a3d77639dc3328acfacfbe.tar.xz
Fix GCC 5.1 compile issue seen at Linux Arch
rmodule.c: In function ‘rmodule_create’: rmodule.c:287:29: error: ‘phdr’ may be used uninitialized in this function [-Werror=maybe-uninitialized] (phdr->p_vaddr + phdr->p_memsz))) { ^ rmodule.c:204:14: note: ‘phdr’ was declared here Elf64_Phdr *phdr; ^ Change-Id: I94a235253610348484eef218ec855103a3bb5da5 Signed-off-by: Anatol Pomozov <anatol.pomozov@gmail.com> Reviewed-on: http://review.coreboot.org/10881 Tested-by: build bot (Jenkins) Reviewed-by: Francis Rowe <info@gluglug.org.uk>
Diffstat (limited to 'util')
-rw-r--r--util/cbfstool/rmodule.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/util/cbfstool/rmodule.c b/util/cbfstool/rmodule.c
index b94e0c279a..f93f4f6508 100644
--- a/util/cbfstool/rmodule.c
+++ b/util/cbfstool/rmodule.c
@@ -201,7 +201,7 @@ static int find_program_segment(struct rmod_context *ctx)
int i;
int nsegments;
struct parsed_elf *pelf;
- Elf64_Phdr *phdr;
+ Elf64_Phdr *phdr = NULL;
pelf = &ctx->pelf;