From 7f24b1c3e9c61b7bab6a2365e9988d536092fb4b Mon Sep 17 00:00:00 2001 From: Andy Polyakov Date: Sat, 24 Jan 2004 16:31:21 +0000 Subject: [PATCH 1/1] Get rid of bogus warning when compiling with Sun vendor compiler. --- crypto/ec/ec.h | 8 ++++++++ crypto/ec/ec_lcl.h | 5 +++++ 2 files changed, 13 insertions(+) diff --git a/crypto/ec/ec.h b/crypto/ec/ec.h index 8f4d4e1818..db15a81938 100644 --- a/crypto/ec/ec.h +++ b/crypto/ec/ec.h @@ -84,6 +84,10 @@ #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 diff --git a/crypto/ec/ec_lcl.h b/crypto/ec/ec_lcl.h index f59fe0e448..9becad8283 100644 --- a/crypto/ec/ec_lcl.h +++ b/crypto/ec/ec_lcl.h @@ -75,6 +75,11 @@ #include #include +#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. */ -- 2.34.1