[PATCH 2/2] testsuites/dhrystone: Initialize before use

Joel Sherrill joel.sherrill at gmail.com
Fri Mar 1 14:40:01 UTC 2024


On Fri, Mar 1, 2024 at 8:21 AM Kinsey Moore <kinsey.moore at oarcorp.com>
wrote:

> A very similar change was made in 2017 to resolve the same warning for a
> different variable. The only real difference is that it is wrapped in
> __rtems__ ifdefs. I can move this change to the #ifdef'd section if that's
> preferable.
>

Do not rearrange. Just add the __rtems__ conditional. The goal is to fix
issues while minimizing differences.

--joel

>
> Kinsey
>
> On Fri, Mar 1, 2024 at 1:02 AM Sebastian Huber <
> sebastian.huber at embedded-brains.de> wrote:
>
>> On 28.02.24 19:15, Kinsey Moore wrote:
>> > This resovles a warning where a variable could be used before it is
>> > initialized in some code paths.
>>
>> I am not sure if we should modify benchmark code.
>>
>> --
>> embedded brains GmbH & Co. KG
>> Herr Sebastian HUBER
>> Dornierstr. 4
>> 82178 Puchheim
>> Germany
>> email: sebastian.huber at embedded-brains.de
>> phone: +49-89-18 94 741 - 16
>> fax:   +49-89-18 94 741 - 08
>>
>> Registergericht: Amtsgericht München
>> Registernummer: HRB 157899
>> Vertretungsberechtigte Geschäftsführer: Peter Rasmussen, Thomas Dörfler
>> Unsere Datenschutzerklärung finden Sie hier:
>> https://embedded-brains.de/datenschutzerklaerung/
>> _______________________________________________
>> devel mailing list
>> devel at rtems.org
>> http://lists.rtems.org/mailman/listinfo/devel
>
> _______________________________________________
> devel mailing list
> devel at rtems.org
> http://lists.rtems.org/mailman/listinfo/devel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/devel/attachments/20240301/40079700/attachment.htm>


More information about the devel mailing list