VMS: Disable the warning MAYLOSEDATA3
authorRichard Levitte <levitte@openssl.org>
Tue, 29 Mar 2016 18:18:31 +0000 (20:18 +0200)
committerRichard Levitte <levitte@openssl.org>
Tue, 29 Mar 2016 18:27:22 +0000 (20:27 +0200)
commit5fe5bc3094339626c6a7d3dd9149b7375c3940bb
tree2053d413c766ff57d3f0fb8465fcadd54e23f85b
parent85112d53c5d43f99f4efe899c66ef858246f512e
VMS: Disable the warning MAYLOSEDATA3

The warning MAYLOSEDATA3 is one you will always get when compiling
source that calculates the difference between two pointers with
/POINTER_SIZE=64.

The reason is quite simple, ptrdiff_t is always a 32-bit integer
regardless of pointer size, so the result of 'ptr1 - ptr2' can
potentially be larger than a 32-bit integer.  The compiler simply
warns you of that possibility.

However, we only use pointer difference within objects and strings,
all of them well within 2^32 bytes in size, so that operation is
harmless with our source, and we can therefore safely turn off that
warning.

Reviewed-by: Rich Salz <rsalz@openssl.org>
Configurations/10-main.conf