Error message:
test_ciphers.c(37,9): warning C4068: unknown pragma 'GCC'
Signed-off-by: Vitaly Chikunov <vt@altlinux.org>
else \
printf(cGREEN "Test passed" cNORM "\n");}
+#ifdef __GNUC__
/* Pragma to allow commenting out some tests. */
-#pragma GCC diagnostic ignored "-Wunused-const-variable"
+# pragma GCC diagnostic ignored "-Wunused-const-variable"
+#endif
/*
* Test keys from both GOST R 34.12-2015 and GOST R 34.13-2015,
else \
printf(cGREEN " Test passed" cNORM "\n");}
+#ifdef __GNUC__
/* To test older APIs. */
-#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
+# pragma GCC diagnostic ignored "-Wdeprecated-declarations"
+#endif
/*
* Test keys from both GOST R 34.12-2015 and GOST R 34.13-2015,
#include <netinet/in.h>
#include <arpa/inet.h>
+#ifdef __GNUC__
/* For X509_NAME_add_entry_by_txt */
-#pragma GCC diagnostic ignored "-Wpointer-sign"
+# pragma GCC diagnostic ignored "-Wpointer-sign"
+#endif
#define T(e) ({ if (!(e)) { \
ERR_print_errors_fp(stderr); \