[Mesa-dev] [PATCH mesa] intel/tools: add missing variable initialisation

Eric Engestrom eric.engestrom at intel.com
Wed Aug 8 14:34:21 UTC 2018


On Wednesday, 2018-08-08 15:29:49 +0100, Lionel Landwerlin wrote:
> Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin at intel.com>
> 
> bo_addr doesn't have a warning?

Nope; I guess bo_type guards it perfectly ;)

> 
> On 08/08/18 15:27, Eric Engestrom wrote:
> > Cc: Lionel Landwerlin <lionel.g.landwerlin at intel.com>
> > Signed-off-by: Eric Engestrom <eric.engestrom at intel.com>
> > ---
> >   src/intel/tools/error2aub.c | 2 +-
> >   1 file changed, 1 insertion(+), 1 deletion(-)
> > 
> > diff --git a/src/intel/tools/error2aub.c b/src/intel/tools/error2aub.c
> > index 3407dcec0b795168c4c8..2030593691cc4ba6dba0 100644
> > --- a/src/intel/tools/error2aub.c
> > +++ b/src/intel/tools/error2aub.c
> > @@ -205,7 +205,7 @@ main(int argc, char *argv[])
> >         BO_TYPE_UNKNOWN = 0,
> >         BO_TYPE_BATCH,
> >         BO_TYPE_USER,
> > -   } bo_type;
> > +   } bo_type = BO_TYPE_UNKNOWN;
> >      uint64_t bo_addr;
> >      char *line = NULL;
> 
> 
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/mesa-dev


More information about the mesa-dev mailing list