[Beignet] [PATCH] GBE: fix uninitialized build warning.

Yang, Rong R rong.r.yang at intel.com
Tue Sep 6 07:26:37 UTC 2016


Pushed, thanks.

> -----Original Message-----
> From: Pan, Xiuli
> Sent: Tuesday, September 6, 2016 10:51
> To: Yang, Rong R <rong.r.yang at intel.com>; beignet at lists.freedesktop.org
> Cc: Yang, Rong R <rong.r.yang at intel.com>
> Subject: RE: [Beignet] [PATCH] GBE: fix uninitialized build warning.
> 
> LGTM!
> Thanks!
> 
> -----Original Message-----
> From: Beignet [mailto:beignet-bounces at lists.freedesktop.org] On Behalf Of
> Yang Rong
> Sent: Tuesday, September 6, 2016 12:09 PM
> To: beignet at lists.freedesktop.org
> Cc: Yang, Rong R <rong.r.yang at intel.com>
> Subject: [Beignet] [PATCH] GBE: fix uninitialized build warning.
> 
> Signed-off-by: Yang Rong <rong.r.yang at intel.com>
> ---
>  backend/src/backend/gen_insn_compact.cpp | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/backend/src/backend/gen_insn_compact.cpp
> b/backend/src/backend/gen_insn_compact.cpp
> index 5de451c..62fcb61 100644
> --- a/backend/src/backend/gen_insn_compact.cpp
> +++ b/backend/src/backend/gen_insn_compact.cpp
> @@ -587,7 +587,7 @@ namespace gbe {
>      if(src0->file == GEN_IMMEDIATE_VALUE)
>        return -1;
> 
> -    compact_table_entry *r;
> +    compact_table_entry *r = NULL;
>      if(p->getCompactVersion() == 7) {
>        DataTypeBits b;
>        b.data = 0;
> --
> 2.1.4
> 
> _______________________________________________
> Beignet mailing list
> Beignet at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/beignet


More information about the Beignet mailing list