From 80b316212a337df1ad605e4fae6da47330523d12 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=8D=9C=E9=83=A8=E6=98=8C=E5=B9=B3?= Date: Wed, 19 Aug 2020 16:33:15 +0900 Subject: [PATCH] ext/-test-/cxxanyargs: suppress SunPro warning I found a way to suppress particular kind of warnings via pragmas. --- ext/-test-/cxxanyargs/cxxanyargs.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ext/-test-/cxxanyargs/cxxanyargs.cpp b/ext/-test-/cxxanyargs/cxxanyargs.cpp index c9254d40f3..eded13e2ee 100644 --- a/ext/-test-/cxxanyargs/cxxanyargs.cpp +++ b/ext/-test-/cxxanyargs/cxxanyargs.cpp @@ -14,6 +14,9 @@ #elif defined(__GNUC__) #pragma GCC diagnostic ignored "-Wdeprecated-declarations" +#elif defined(__SUNPRO_CC) +#pragma error_messages (off,symdeprecated) + #else // :FIXME: improve here for your compiler.