[openssl-dev] [openssl.org #4123] Query regarding dummy variable inside crypto

Kaduk, Ben via RT rt at openssl.org
Mon Nov 9 17:06:02 UTC 2015


On 11/08/2015 05:37 AM, tosif tamboli via RT wrote:
> Hi ,
> I am compiling crypto in openssl for vxWorks version 5.4
> with 5.5.1 it compiles well
> But with 5.4 it gives error for below files
> bn_depr.c
> ccppc: Internal compiler error: program cc1 got fatal signal 6
>
> When checked it gives error for location
> static void *dummy=&dummy;
> When I comment it then compiles well. but not getting why it's required if
> it's not being used anywhere.
>
> Can you please provide your inputs for above?
>

It is present so that when OPENSSL_NO_DEPRECATED is set, pedantic
compilers do not warn about an empty compilation unit.  However, it does
not conform to the current best practice for such code.  The attached
patch should help.

-Ben

-------------- next part --------------
A non-text attachment was scrubbed...
Name: pedantic.diff
Type: text/x-patch
Size: 986 bytes
Desc: not available
URL: <http://mta.openssl.org/pipermail/openssl-dev/attachments/20151109/ddee041a/attachment.bin>


More information about the openssl-dev mailing list