[PATCH] Silence 'may be used uninitialized in this function' warnings

Jussi Kivilinna jussi.kivilinna at iki.fi
Wed Jan 20 15:24:47 CET 2021


On 20.1.2021 14.59, Werner Koch wrote:
> On Tue, 19 Jan 2021 20:14, Jussi Kivilinna said:
> 
>> Warnings were seen on gcc-s390x build with optimization level -O3.
> 
> In general I don't like to silence such warning because later compiler
> versions are often fixed to detect such wrong warnings.  The
> initialization may in some cases even inhibit the compiler to detect
> other errors.
> 
>> -  ARCFOUR_context ctx;
>> +  ARCFOUR_context ctx = { { 0, }, };
> 
> The context is initialized in do_arcfour_setkey.  Trailing commas are
> not needed and HP compilers may bail out here.
> 
> I suggest not to apply this patch.
> 

Ok. I'll leave this one out.

-Jussi

> 
> Salam-Shalom,
> 
>     Werner
> 




More information about the Gcrypt-devel mailing list