<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><b>warning are printed twice for each arch, is this by design?</b></div><div><br></div><div>~/Developer/MacRuby-> 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</div><div>clang: warning: argument unused during compilation: '-fno-common'</div><div>clang: warning: argument unused during compilation: '-Wno-parentheses'</div><div>clang: warning: argument unused during compilation: '-Wno-deprecated-declarations'</div><div>iseq.c:345:45: warning: expression result unused</div><div>static inline VALUE CHECK_INTEGER(VALUE v) {NUM2LONG(v); return v;}</div><div>                                            ^~~~~~~~~~~</div><div>./include/ruby/ruby.h:384:34: note: instantiated from:</div><div>#define NUM2LONG(x) (FIXNUM_P(x)?FIX2LONG(x):rb_num2long((VALUE)x))</div><div>                                 ^</div><div>./include/ruby/ruby.h:227:21: note: instantiated from:</div><div>#define FIX2LONG(x) RSHIFT((SIGNED_VALUE)x,1)</div><div>                    ^</div><div>./include/ruby/config.h:223:25: note: instantiated from:</div><div>#define RSHIFT(x,y) ((x)>>(int)y)</div><div>                     ~~~^</div><div>1 diagnostic generated.</div><div>iseq.c:345:45: warning: expression result unused</div><div>static inline VALUE CHECK_INTEGER(VALUE v) {NUM2LONG(v); return v;}</div><div>                                            ^~~~~~~~~~~</div><div>./include/ruby/ruby.h:384:34: note: instantiated from:</div><div>#define NUM2LONG(x) (FIXNUM_P(x)?FIX2LONG(x):rb_num2long((VALUE)x))</div><div>                                 ^</div><div>./include/ruby/ruby.h:227:21: note: instantiated from:</div><div>#define FIX2LONG(x) RSHIFT((SIGNED_VALUE)x,1)</div><div>                    ^</div><div>./include/ruby/config.h:223:25: note: instantiated from:</div><div>#define RSHIFT(x,y) ((x)>>(int)y)</div><div>                     ~~~^</div><div>1 diagnostic generated.</div><br><div><br></div><div><div><b>with saved-temps warning is much more readable.</b></div><div><br></div><div>==== with saved-temps =============</div><div><div>~/Developer/MacRuby-> clang -I. -I./include -I/usr/include/libxml2 -arch i386 -save-temps -fno-common -pipe -O2 -g -Wall -Wno-parentheses -Wno-deprecated-declarations -Werror -c iseq.c -o iseq.o</div><div>clang: warning: argument unused during compilation: '-fno-common'</div><div>clang: warning: argument unused during compilation: '-Wno-parentheses'</div><div>clang: warning: argument unused during compilation: '-Wno-deprecated-declarations'</div><div>In file included from iseq.c:1:</div><div>iseq.c:345:87: warning: expression result unused</div><div>static inline VALUE CHECK_INTEGER(VALUE v) {((((long)(v))&RUBY_FIXNUM_FLAG)?(((long)v)>>(int)1):rb_num2long((VALUE)v)); return v;}</div><div>                                                                             ~~~~~~~~~^ ~~~~~~</div><div>1 diagnostic generated.</div><br></div><div>===== </div><br></div></body></html>