Get rid of bogus warning when compiling with Sun vendor compiler.
authorAndy Polyakov <appro@openssl.org>
Sat, 24 Jan 2004 16:31:21 +0000 (16:31 +0000)
committerAndy Polyakov <appro@openssl.org>
Sat, 24 Jan 2004 16:31:21 +0000 (16:31 +0000)
crypto/ec/ec.h
crypto/ec/ec_lcl.h

index 8f4d4e1818e2348ebea9d8018c61a2aeec8e5be9..db15a81938ed5531b41ccec8bada42f169391e1d 100644 (file)
 
 #ifdef  __cplusplus
 extern "C" {
+#elif defined(__SUNPRO_C)
+# if __SUNPRO_C >= 0x520
+# pragma error_messages (off,E_ARRAY_OF_INCOMPLETE_NONAME,E_ARRAY_OF_INCOMPLETE)
+# endif
 #endif
 
 
@@ -501,5 +505,9 @@ void ERR_load_EC_strings(void);
 
 #ifdef  __cplusplus
 }
+#elif defined(__SUNPRO_C)
+# if __SUNPRO_C >= 0x520
+# pragma error_messages (default,E_ARRAY_OF_INCOMPLETE_NONAME,E_ARRAY_OF_INCOMPLETE)
+# endif
 #endif
 #endif
index f59fe0e4483ea43262ad8c867b9876a7b81fe8ef..9becad8283d989c323e37b755c00a0095c0d7db9 100644 (file)
 #include <openssl/obj_mac.h>
 #include <openssl/ec.h>
 
+#if defined(__SUNPRO_C)
+# if __SUNPRO_C >= 0x520
+# pragma error_messages (off,E_ARRAY_OF_INCOMPLETE_NONAME,E_ARRAY_OF_INCOMPLETE)
+# endif
+#endif
 
 /* Structure details are not part of the exported interface,
  * so all this may change in future versions. */