diff options
author | Khem Raj <raj.khem@gmail.com> | 2017-08-14 22:27:05 -0700 |
---|---|---|
committer | Saul Wold <sgw@linux.intel.com> | 2017-08-15 14:03:05 -0700 |
commit | 974fedf70ae759ced4ed8918ea8a9147329efff8 (patch) | |
tree | d2517ed159b94705f263658c77de650624350453 /common/recipes-bsp/efilinux/efilinux/0002-initialize-char-pointers.patch | |
parent | 75e31097d90b83dae81181670d48bc896c4c1360 (diff) | |
download | meta-intel-974fedf70ae759ced4ed8918ea8a9147329efff8.tar.gz |
efilinux: Fix build warnings
Additional warnings found with clang
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Diffstat (limited to 'common/recipes-bsp/efilinux/efilinux/0002-initialize-char-pointers.patch')
-rw-r--r-- | common/recipes-bsp/efilinux/efilinux/0002-initialize-char-pointers.patch | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/common/recipes-bsp/efilinux/efilinux/0002-initialize-char-pointers.patch b/common/recipes-bsp/efilinux/efilinux/0002-initialize-char-pointers.patch new file mode 100644 index 00000000..127c187a --- /dev/null +++ b/common/recipes-bsp/efilinux/efilinux/0002-initialize-char-pointers.patch | |||
@@ -0,0 +1,33 @@ | |||
1 | From 49053e4ff0f3550d019cdad8a93677c18fc69791 Mon Sep 17 00:00:00 2001 | ||
2 | From: Khem Raj <raj.khem@gmail.com> | ||
3 | Date: Sat, 12 Aug 2017 10:35:09 -0700 | ||
4 | Subject: [PATCH 2/2] initialize char pointers | ||
5 | |||
6 | Clang complains about using them without initializing | ||
7 | |||
8 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
9 | --- | ||
10 | Upstream-Status: Pending | ||
11 | |||
12 | entry.c | 4 ++-- | ||
13 | 1 file changed, 2 insertions(+), 2 deletions(-) | ||
14 | |||
15 | diff --git a/entry.c b/entry.c | ||
16 | index 0aa6cdd..23ba51e 100644 | ||
17 | --- a/entry.c | ||
18 | +++ b/entry.c | ||
19 | @@ -402,9 +402,9 @@ efi_main(EFI_HANDLE image, EFI_SYSTEM_TABLE *_table) | ||
20 | WCHAR *error_buf; | ||
21 | EFI_STATUS err; | ||
22 | EFI_LOADED_IMAGE *info; | ||
23 | - CHAR16 *name, *options; | ||
24 | + CHAR16 *name = NULL, *options; | ||
25 | UINT32 options_size; | ||
26 | - char *cmdline; | ||
27 | + char *cmdline = NULL; | ||
28 | |||
29 | InitializeLib(image, _table); | ||
30 | sys_table = _table; | ||
31 | -- | ||
32 | 2.14.1 | ||
33 | |||