Skip to content

Instantly share code, notes, and snippets.

@shyouhei
Created May 4, 2017 05:11
Show Gist options
  • Save shyouhei/3f7a1053df52c59c85b28349023a54a7 to your computer and use it in GitHub Desktop.
Save shyouhei/3f7a1053df52c59c85b28349023a54a7 to your computer and use it in GitHub Desktop.
zsh % make miniruby
CC = clang-4.0
LD = ld
LDSHARED = clang-4.0 -dynamic -bundle
CFLAGS = -O3 -fno-fast-math -ggdb3 -Wall -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Wno-tautological-compare -Wno-parentheses-equality -Wno-constant-logical-operand -Wno-self-assign -Wunused-variable -Werror=implicit-int -Werror=pointer-arith -Werror=write-strings -Werror=declaration-after-statement -Werror=shorten-64-to-32 -Werror=implicit-function-declaration -Werror=division-by-zero -Werror=deprecated-declarations -Werror=extra-tokens -pipe
XCFLAGS = -D_FORTIFY_SOURCE=2 -fstack-protector -fno-strict-overflow -fvisibility=hidden -DRUBY_EXPORT -fPIE
CPPFLAGS = -I/usr/local/opt/libressl/include -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT -I. -I.ext/include/x86_64-darwin15 -I/Users/urabe.shyouhei/data/src/ci.ruby-lang.org/ruby/trunk/include -I/Users/urabe.shyouhei/data/src/ci.ruby-lang.org/ruby/trunk -I/Users/urabe.shyouhei/data/src/ci.ruby-lang.org/ruby/trunk/enc/unicode/9.0.0
DLDFLAGS = -Wl,-undefined,dynamic_lookup -Wl,-multiply_defined,suppress -L/usr/local/opt/libressl/lib -fstack-protector -Wl,-u,_objc_msgSend -Wl,-pie -framework CoreFoundation
SOLIBS =
clang version 4.0.0 (tags/RELEASE_400/final)
Target: x86_64-apple-darwin15.6.0
Thread model: posix
InstalledDir: /Users/urabe.shyouhei/bin
compiling /Users/urabe.shyouhei/data/src/ci.ruby-lang.org/ruby/trunk/time.c
/Users/urabe.shyouhei/data/src/ci.ruby-lang.org/ruby/trunk/time.c:841:35: warning: taking address of packed member 'subsecx' of class or structure 'vtm' may result in an unaligned pointer value [-Waddress-of-packed-member]
split_second(timew, &timew2, &vtm->subsecx);
^~~~~~~~~~~~
/Users/urabe.shyouhei/data/src/ci.ruby-lang.org/ruby/trunk/time.c:1996:53: warning: taking address of packed member 'subsecx' of class or structure 'vtm' may result in an unaligned pointer value [-Waddress-of-packed-member]
vtm.sec = NIL_P(v[5]) ? 0 : obj2subsecx(v[5], &vtm.subsecx);
^~~~~~~~~~~
/Users/urabe.shyouhei/data/src/ci.ruby-lang.org/ruby/trunk/time.c:2591:54: warning: taking address of packed member 'subsecx' of class or structure 'vtm' may result in an unaligned pointer value [-Waddress-of-packed-member]
vtm->sec = NIL_P(v[5])?0:obj2subsecx(v[5], &vtm->subsecx);
^~~~~~~~~~~~
/Users/urabe.shyouhei/data/src/ci.ruby-lang.org/ruby/trunk/time.c:2595:17: warning: taking address of packed member 'subsecx' of class or structure 'vtm' may result in an unaligned pointer value [-Waddress-of-packed-member]
RB_GC_GUARD(vtm->subsecx);
^~~~~~~~~~~~
/Users/urabe.shyouhei/data/src/ci.ruby-lang.org/ruby/trunk/include/ruby/ruby.h:540:40: note: expanded from macro 'RB_GC_GUARD'
volatile VALUE *rb_gc_guarded_ptr = &(v); \
^
4 warnings generated.
linking miniruby
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment