X-Git-Url: https://git.openssl.org/?p=openssl.git;a=blobdiff_plain;f=apps%2Fapps.c;h=e1241495ea2d08aee88e8ea67a761a50caea8b3b;hp=128f387593289bd4910acba36cc117ad0c728c1c;hb=90dbd25097d7d4af0bea0cd9cab60d749ed0a6a2;hpb=fcd9c8c0149d989bf0ab28e14bbaa49e5060db9b diff --git a/apps/apps.c b/apps/apps.c index 128f387593..e1241495ea 100644 --- a/apps/apps.c +++ b/apps/apps.c @@ -2499,7 +2499,21 @@ BIO *dup_bio_err(int format) void unbuffer(FILE *fp) { +/* + * On VMS, setbuf() will only take 32-bit pointers, and a compilation + * with /POINTER_SIZE=64 will give off a MAYLOSEDATA2 warning here. + * However, we trust that the C RTL will never give us a FILE pointer + * above the first 4 GB of memory, so we simply turn off the warning + * temporarily. + */ +#if defined(OPENSSL_SYS_VMS) && defined(__DECC) +# pragma environment save +# pragma message disable maylosedata2 +#endif setbuf(fp, NULL); +#if defined(OPENSSL_SYS_VMS) && defined(__DECC) +# pragma environment restore +#endif } static const char *modestr(char mode, int format)