Turn off VMS C's info about unsupported pragmas
authorRichard Levitte <levitte@openssl.org>
Mon, 17 May 2021 12:44:01 +0000 (14:44 +0200)
committerRichard Levitte <levitte@openssl.org>
Wed, 19 May 2021 10:31:16 +0000 (12:31 +0200)
VMS C can be notoriously informative about certain things, such as
unsupported pragmas.  The case here is that it doesn't support
"#pragma once", and since we use those quite a lot, that's a lot of
repeated information.  We simply turn that warning off.

Reviewed-by: Tim Hudson <tjh@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/15317)

Configurations/10-main.conf

index 8427a561e36869fa645ae856d0eb6687ec735eed..41575fbaae6faece351c0e8b8ace7f0bc1543f6f 100644 (file)
@@ -134,7 +134,9 @@ sub vms_info {
     }
 
     unless (%$vms_info) {
-        $vms_info->{disable_warns} = [ ];
+        $vms_info->{disable_warns} = [
+            "CXXPRAGMANA",      # Shut up about unknown / unsupported pragmas
+        ];
         $vms_info->{pointer_size} = $pointer_size_str;
         if ($pointer_size_str eq "64") {
             `PIPE CC /NOCROSS_REFERENCE /NOLIST /NOOBJECT /WARNINGS = DISABLE = ( MAYLOSEDATA3, EMPTYFILE ) NL: 2> NL:`;