[openssl-users] Warnings Compiling openssl 1.0.2d

Matt Caswell matt at openssl.org
Thu Jul 9 15:25:32 UTC 2015



On 09/07/15 15:47, Tom Browder wrote:
> I get the following warnings from compiling the latest openssl with gcc 4.7.2:
> 
> ec_key.c: In function 'EC_KEY_set_public_key_affine_coordinates':
> ec_key.c:369:26: warning: variable 'is_char_two' set but not used
> [-Wunused-but-set-variable]

I don't get this by default, but can force it by compiling with no-ec2m.
I assume that is what you are using? Its harmless but should be fixed.


> 
> ecp_nistp224.c: In function 'batch_mul':
> ecp_nistp224.c:1105:29: warning: array subscript is above array bounds
> [-Warray-bounds]
> 
> ecp_nistp256.c: In function 'batch_mul':
> ecp_nistp256.c:1631:28: warning: array subscript is above array bounds
> [-Warray-bounds]
> 
> ecp_nistp521.c: In function 'batch_mul':
> ecp_nistp521.c:1457:29: warning: array subscript is above array bounds
> [-Warray-bounds]

These only get compiled with enable-ec_nistp_64_gcc_128, but even with
that I don't see these warnings. Perhaps a gcc issue fixed in later
versions? I'm using gcc 4.9.2

Matt


More information about the openssl-users mailing list