Skip to content

MacRuby warning: expression result unused #4257

@llvmbot

Description

@llvmbot
Bugzilla Link 3885
Resolution WORKSFORME
Resolved on Feb 22, 2010 12:41
Version unspecified
OS All
Reporter LLVM Bugzilla Contributor

Extended Description

clang -I. -I./include -I/usr/include/libxml2 -arch i386 -arch x86_64 -fno-common -pipe -O2 -g -Wall -Wno-parentheses -Wno-deprecated-declarations -Werror -c iseq.c -o iseq.o
clang: warning: argument unused during compilation: '-fno-common'
clang: warning: argument unused during compilation: '-Wno-parentheses'
clang: warning: argument unused during compilation: '-Wno-deprecated-declarations'
iseq.c:345:45: warning: expression result unused
static inline VALUE CHECK_INTEGER(VALUE v) {NUM2LONG(v); return v;}
^~~~~~~~~~~
./include/ruby/ruby.h:384:34: note: instantiated from:
#define NUM2LONG(x) (FIXNUM_P(x)?FIX2LONG(x):rb_num2long((VALUE)x))
^
./include/ruby/ruby.h:227:21: note: instantiated from:
#define FIX2LONG(x) RSHIFT((SIGNED_VALUE)x,1)
^
./include/ruby/config.h:223:25: note: instantiated from:
#define RSHIFT(x,y) ((x)>>(int)y)
~~~^
1 diagnostic generated.
iseq.c:345:45: warning: expression result unused
static inline VALUE CHECK_INTEGER(VALUE v) {NUM2LONG(v); return v;}
^~~~~~~~~~~
./include/ruby/ruby.h:384:34: note: instantiated from:
#define NUM2LONG(x) (FIXNUM_P(x)?FIX2LONG(x):rb_num2long((VALUE)x))
^
./include/ruby/ruby.h:227:21: note: instantiated from:
#define FIX2LONG(x) RSHIFT((SIGNED_VALUE)x,1)
^
./include/ruby/config.h:223:25: note: instantiated from:
#define RSHIFT(x,y) ((x)>>(int)y)
~~~^
1 diagnostic generated.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugzillaIssues migrated from bugzillaclangClang issues not falling into any other categoryworksformeResolved as "works for me"

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions