diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-08-30 13:29:45 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-08-30 13:29:45 +0000 |
commit | b6c425aaddd38fec6a6b6f0d816bff18bc205cfd (patch) | |
tree | 5cd93f4fa0ebc5b0e084f63775f21abfc6d84feb /symbol.c | |
parent | 765e4e2ea68f4b219df33719009ea83677b5d85d (diff) | |
download | ruby-b6c425aaddd38fec6a6b6f0d816bff18bc205cfd.tar.gz |
internal.h: WARN_UNUSED_RESULT
* internal.h (WARN_UNUSED_RESULT): warn unused result by gcc 3.4
or later.
* symbol.c: declare some functions with WARN_UNUSED_RESULT.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47323 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'symbol.c')
-rw-r--r-- | symbol.c | 9 |
1 files changed, 7 insertions, 2 deletions
@@ -103,8 +103,13 @@ Init_sym(void) Init_id(); } -static ID attrsetname_to_attr(VALUE name); -static VALUE lookup_id_str(ID id); +WARN_UNUSED_RESULT(static VALUE dsymbol_alloc(const VALUE klass, const VALUE str, rb_encoding *const enc)); +WARN_UNUSED_RESULT(static VALUE dsymbol_check(const VALUE sym)); +WARN_UNUSED_RESULT(static ID dsymbol_pindown(VALUE sym)); +WARN_UNUSED_RESULT(static ID lookup_str_id(VALUE str)); +WARN_UNUSED_RESULT(static VALUE lookup_str_sym(const VALUE str)); +WARN_UNUSED_RESULT(static VALUE lookup_id_str(ID id)); +WARN_UNUSED_RESULT(static ID attrsetname_to_attr(VALUE name)); ID rb_id_attrset(ID id) |