Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@mitchty
Created December 2, 2012 04:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mitchty/4187027 to your computer and use it in GitHub Desktop.
Save mitchty/4187027 to your computer and use it in GitHub Desktop.
compiling num2int.c
clang: warning: argument unused during compilation: '-L/Users/mitch/.rubies/ruby-head/include'
num2int.c:82:21: error: expected ')'
sprintf(buf, "%"PRI_LL_PREFIX"d", NUM2LL(num));
^
/usr/include/secure/_stdio.h:49:56: note: expanded from macro 'sprintf'
__builtin___sprintf_chk (str, 0, __darwin_obsz(str), __VA_ARGS__)
^
num2int.c:82:5: note: to match this '('
sprintf(buf, "%"PRI_LL_PREFIX"d", NUM2LL(num));
^
/usr/include/secure/_stdio.h:49:27: note: expanded from macro 'sprintf'
__builtin___sprintf_chk (str, 0, __darwin_obsz(str), __VA_ARGS__)
^
num2int.c:94:21: error: expected ')'
sprintf(buf, "%"PRI_LL_PREFIX"u", NUM2ULL(num));
^
/usr/include/secure/_stdio.h:49:56: note: expanded from macro 'sprintf'
__builtin___sprintf_chk (str, 0, __darwin_obsz(str), __VA_ARGS__)
^
num2int.c:94:5: note: to match this '('
sprintf(buf, "%"PRI_LL_PREFIX"u", NUM2ULL(num));
^
/usr/include/secure/_stdio.h:49:27: note: expanded from macro 'sprintf'
__builtin___sprintf_chk (str, 0, __darwin_obsz(str), __VA_ARGS__)
^
2 errors generated.
make[2]: *** [num2int.o] Error 1
make[1]: *** [ext/-test-/num2int/static] Error 2
make: *** [build-ext] Error 2
make failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment