aboutsummaryrefslogtreecommitdiffstats
path: root/include/ruby/defines.h
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-08-13 04:41:51 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-08-13 04:41:51 +0000
commitdf62ca9caedfffb81ea16b884bb03cddc2fae821 (patch)
treea6677c4361cc28767143f41b3f02a2e9e6cc3063 /include/ruby/defines.h
parent17fab2d6085a4efac75ac2071405376732788e8e (diff)
downloadruby-df62ca9caedfffb81ea16b884bb03cddc2fae821.tar.gz
defines.h: tweaks of function alias macros
* include/ruby/defines.h (RUBY_ALIAS_FUNCTION_TYPE): cast the result to suppress warnings. * include/ruby/defines.h (RUBY_ALIAS_FUNCTION_VOID): minimize if possible. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51561 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'include/ruby/defines.h')
-rw-r--r--include/ruby/defines.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/ruby/defines.h b/include/ruby/defines.h
index 05a7ddd90d..6dfb44e407 100644
--- a/include/ruby/defines.h
+++ b/include/ruby/defines.h
@@ -245,11 +245,11 @@ void rb_ia64_flushrs(void);
#endif
#ifndef RUBY_ALIAS_FUNCTION_TYPE
#define RUBY_ALIAS_FUNCTION_TYPE(type, prot, name, args) \
- FUNC_MINIMIZED(type prot) {return name args;}
+ FUNC_MINIMIZED(type prot) {return (type)name args;}
#endif
#ifndef RUBY_ALIAS_FUNCTION_VOID
#define RUBY_ALIAS_FUNCTION_VOID(prot, name, args) \
- void prot {name args;}
+ FUNC_MINIMIZED(void prot) {name args;}
#endif
#ifndef RUBY_ALIAS_FUNCTION
#define RUBY_ALIAS_FUNCTION(prot, name, args) \