RTEMS | bsps/riscv/shared/fdt/riscv-fdt.c: Fix may be uniitialized warning (!1231)

Joel Sherrill (@joel) gitlab at rtems.org
Tue May 5 22:33:15 UTC 2026




Joel Sherrill commented on a discussion on bsps/riscv/shared/fdt/riscv-fdt.c: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/1231#note_149522

 >      return NULL;
 >    }
 >  
 > +  /*
 > +   * Start and size are used in the return statement even if none of
 > +   * the following if's are tripped. This also avoids a "may be used
 > +   * uninitialized" warning.
 > +   */
 > +  uintptr_t start = 0;
 > +  uintptr_t size = 0;

Pushed again. How about now?

-- 
View it on GitLab: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/1231#note_149522
You're receiving this email because of your account on gitlab.rtems.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/bugs/attachments/20260505/7cbd4dec/attachment-0001.htm>


More information about the bugs mailing list