mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
vm_core.h: suppress warnings
* vm_core.h (UNINITIALIZED_VAR): suppress warnings by clang 4.2. [ruby-core:51742] [Bug #7756] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39855 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
91194dfd38
commit
69d5f4ab53
2 changed files with 8 additions and 1 deletions
|
@ -1,3 +1,8 @@
|
|||
Thu Mar 21 13:50:46 2013 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
|
||||
* vm_core.h (UNINITIALIZED_VAR): suppress warnings by clang 4.2.
|
||||
[ruby-core:51742] [Bug #7756]
|
||||
|
||||
Thu Mar 21 07:34:00 2013 Zachary Scott <zachary@zacharyscott.net>
|
||||
|
||||
* ext/date/date_core.c: Typo in Date::MONTHNAMES by Matt Gauger
|
||||
|
|
|
@ -115,7 +115,9 @@
|
|||
#define UNLIKELY(x) (x)
|
||||
#endif /* __GNUC__ >= 3 */
|
||||
|
||||
#if __GNUC__ >= 3
|
||||
#if (defined(__clang__) && (__clang_major__ == 4 && __clang_minor__ == 2))
|
||||
#define UNINITIALIZED_VAR(x) x __attribute__((unused))
|
||||
#elif defined(__GNUC__) && __GNUC__ >= 3
|
||||
#define UNINITIALIZED_VAR(x) x = x
|
||||
#else
|
||||
#define UNINITIALIZED_VAR(x) x
|
||||
|
|
Loading…
Add table
Reference in a new issue