https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110670

            Bug ID: 110670
           Summary: tree-vect-stmts.cc:9733:11: warning: variable 'offvar'
                    is sometimes initialised
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: dcb314 at hotmail dot com
  Target Milestone: ---

>From today's build of gcc trunk, clang says:

tree-vect-stmts.cc:9733:11: warning: variable 'offvar' is used uninitialized
whenever 'if' condition is false [-Wsometimes-uninitialized]

$ grep -n offvar ../trunk.year/gcc/tree-vect-stmts.cc
8377:      tree offvar;
8495:            &offvar, NULL);
8504:     running_off = offvar;
9692:      tree offvar;
9767:                &offvar, NULL);
9772:      running_off = offvar;
$ 

It might be worthwhile initialising offvar to something sensible
for both its declarations.

Reply via email to