[前][次][番号順一覧][スレッド一覧]

ruby-changes:62666

From: =E5=8D=9C=E9=83=A8=E6=98=8C=E5=B9=B3 <ko1@a...>
Date: Fri, 21 Aug 2020 11:05:16 +0900 (JST)
Subject: [ruby-changes:62666] 80b316212a (master): ext/-test-/cxxanyargs: suppress SunPro warning

https://git.ruby-lang.org/ruby.git/commit/?id=80b316212a

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?=
 <shyouhei@r...>
Date: Wed, 19 Aug 2020 16:33:15 +0900
Subject: ext/-test-/cxxanyargs: suppress SunPro warning

I found a way to suppress particular kind of warnings via pragmas.

diff --git a/ext/-test-/cxxanyargs/cxxanyargs.cpp b/ext/-test-/cxxanyargs/cxxanyargs.cpp
index c9254d4..eded13e 100644
--- a/ext/-test-/cxxanyargs/cxxanyargs.cpp
+++ b/ext/-test-/cxxanyargs/cxxanyargs.cpp
@@ -14,6 +14,9 @@ https://github.com/ruby/ruby/blob/trunk/ext/-test-/cxxanyargs/cxxanyargs.cpp#L14
 #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.
 
-- 
cgit v0.10.2


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]