mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* vm_core.h: use __attribute__((unused)) in UNINTIALIZED_VAR on clang
4.0+ instead of just on 4.2. Clang has supported the unused attribute since before version 4, so this should be safe. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43111 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
ec2db8decf
commit
d60c6c8642
2 changed files with 7 additions and 1 deletions
|
@ -1,3 +1,9 @@
|
|||
Tue Oct 1 23:44:00 2013 Charlie Somerville <charliesome@ruby-lang.org>
|
||||
|
||||
* vm_core.h: use __attribute__((unused)) in UNINTIALIZED_VAR on clang
|
||||
4.0+ instead of just on 4.2. Clang has supported the unused attribute
|
||||
since before version 4, so this should be safe.
|
||||
|
||||
Tue Oct 1 22:03:48 2013 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
|
||||
* lib/tempfile.rb (Tempfile#unlink): finalizer is no longer needed
|
||||
|
|
|
@ -109,7 +109,7 @@
|
|||
#define UNLIKELY(x) (x)
|
||||
#endif /* __GNUC__ >= 3 */
|
||||
|
||||
#if (defined(__clang__) && (__clang_major__ == 4 && __clang_minor__ == 2))
|
||||
#if (defined(__clang__) && __clang_major__ >= 4)
|
||||
#define UNINITIALIZED_VAR(x) x __attribute__((unused))
|
||||
#elif defined(__GNUC__) && __GNUC__ >= 3
|
||||
#define UNINITIALIZED_VAR(x) x = x
|
||||
|
|
Loading…
Reference in a new issue