Skip to content

Instantly share code, notes, and snippets.

@d6rkaiz
Created February 24, 2013 13:37
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 d6rkaiz/5023873 to your computer and use it in GitHub Desktop.
Save d6rkaiz/5023873 to your computer and use it in GitHub Desktop.
ruby 2.0.0 p0 compile warning.
compiling thread.c
thread.c:3291:34: warning: variable 'orig_read' is uninitialized when used within its own initialization [-Wuninitialized]
rb_fdset_t UNINITIALIZED_VAR(orig_read);
^~~~~~~~~
./vm_core.h:119:34: note: expanded from macro 'UNINITIALIZED_VAR'
#define UNINITIALIZED_VAR(x) x = x
^
thread.c:3292:34: warning: variable 'orig_write' is uninitialized when used within its own initialization [-Wuninitialized]
rb_fdset_t UNINITIALIZED_VAR(orig_write);
^~~~~~~~~~
./vm_core.h:119:34: note: expanded from macro 'UNINITIALIZED_VAR'
#define UNINITIALIZED_VAR(x) x = x
^
thread.c:3293:34: warning: variable 'orig_except' is uninitialized when used within its own initialization [-Wuninitialized]
rb_fdset_t UNINITIALIZED_VAR(orig_except);
^~~~~~~~~~~
./vm_core.h:119:34: note: expanded from macro 'UNINITIALIZED_VAR'
#define UNINITIALIZED_VAR(x) x = x
^
3 warnings generated.
-- snip --
compiling ../.././ext/psych/yaml/api.c
../.././ext/psych/yaml/api.c:842:18: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32]
length = strlen((char *)value);
~ ^~~~~~~~~~~~~~~~~~~~~
../.././ext/psych/yaml/api.c:1218:18: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32]
length = strlen((char *)value);
~ ^~~~~~~~~~~~~~~~~~~~~
../.././ext/psych/yaml/api.c:1230:32: warning: implicit conversion loses integer precision: 'long' to 'int' [-Wshorten-64-to-32]
return document->nodes.top - document->nodes.start;
~~~~~~ ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~
../.././ext/psych/yaml/api.c:1275:32: warning: implicit conversion loses integer precision: 'long' to 'int' [-Wshorten-64-to-32]
return document->nodes.top - document->nodes.start;
~~~~~~ ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~
../.././ext/psych/yaml/api.c:1320:32: warning: implicit conversion loses integer precision: 'long' to 'int' [-Wshorten-64-to-32]
return document->nodes.top - document->nodes.start;
~~~~~~ ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~
5 warnings generated.
compiling ../.././ext/psych/yaml/dumper.c
compiling ../.././ext/psych/yaml/emitter.c
compiling ../.././ext/psych/yaml/loader.c
../.././ext/psych/yaml/loader.c:301:41: warning: implicit conversion loses integer precision: 'long' to 'int' [-Wshorten-64-to-32]
index = parser->document->nodes.top - parser->document->nodes.start;
~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../.././ext/psych/yaml/loader.c:346:41: warning: implicit conversion loses integer precision: 'long' to 'int' [-Wshorten-64-to-32]
index = parser->document->nodes.top - parser->document->nodes.start;
~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../.././ext/psych/yaml/loader.c:404:41: warning: implicit conversion loses integer precision: 'long' to 'int' [-Wshorten-64-to-32]
index = parser->document->nodes.top - parser->document->nodes.start;
~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
3 warnings generated.
compiling ../.././ext/psych/yaml/parser.c
compiling ../.././ext/psych/yaml/reader.c
compiling ../.././ext/psych/yaml/scanner.c
../.././ext/psych/yaml/scanner.c:884:57: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32]
if (!yaml_parser_unroll_indent(parser, parser->mark.column))
~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~^~~~~~
../.././ext/psych/yaml/scanner.c:1586:59: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32]
if (!yaml_parser_roll_indent(parser, parser->mark.column, -1,
~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~^~~~~~
../.././ext/psych/yaml/scanner.c:1647:59: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32]
if (!yaml_parser_roll_indent(parser, parser->mark.column, -1,
~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~^~~~~~
../.././ext/psych/yaml/scanner.c:1703:63: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32]
if (!yaml_parser_roll_indent(parser, simple_key->mark.column,
~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~^~~~~~
../.././ext/psych/yaml/scanner.c:1704:33: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32]
simple_key->token_number,
~~~~~~~~~~~~^~~~~~~~~~~~
../.././ext/psych/yaml/scanner.c:1733:63: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32]
if (!yaml_parser_roll_indent(parser, parser->mark.column, -1,
~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~^~~~~~
6 warnings generated.
@d6rkaiz
Copy link
Author

d6rkaiz commented Feb 24, 2013

clang --version
Apple LLVM version 4.2 (clang-425.0.24) (based on LLVM 3.2svn)
Target: x86_64-apple-darwin12.2.1
Thread model: posix

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment