Skip to content

Instantly share code, notes, and snippets.

@masak
Created August 25, 2013 21:24
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 masak/6336419 to your computer and use it in GitHub Desktop.
Save masak/6336419 to your computer and use it in GitHub Desktop.
Moar build errors!
$ make
compiling src/main.o
compiling src/core/args.o
src/core/args.c: In function ‘init_named_used’:
src/core/args.c:3:47: warning: unused parameter ‘tc’ [-Wunused-parameter]
src/core/args.c: In function ‘MVM_args_proc_cleanup_for_cache’:
src/core/args.c:30:56: warning: unused parameter ‘tc’ [-Wunused-parameter]
src/core/args.c: In function ‘MVM_args_slurpy_named’:
src/core/args.c:479:17: warning: statement with no effect [-Wunused-value]
src/core/args.c:483:17: warning: statement with no effect [-Wunused-value]
src/core/args.c:487:17: warning: statement with no effect [-Wunused-value]
src/core/args.c: In function ‘flatten_args’:
src/core/args.c:501:36: warning: unused variable ‘val_info’ [-Wunused-variable]
src/core/args.c:501:26: warning: unused variable ‘key_info’ [-Wunused-variable]
compiling src/core/exceptions.o
src/core/exceptions.c: In function ‘cat_name’:
src/core/exceptions.c:7:48: warning: unused parameter ‘tc’ [-Wunused-parameter]
src/core/exceptions.c: In function ‘in_handler_stack’:
src/core/exceptions.c:36:52: warning: unused parameter ‘tc’ [-Wunused-parameter]
src/core/exceptions.c:36:73: warning: unused parameter ‘fh’ [-Wunused-parameter]
src/core/exceptions.c: In function ‘in_caller_chain’:
src/core/exceptions.c:44:51: warning: unused parameter ‘tc’ [-Wunused-parameter]
src/core/exceptions.c: At top level:
src/core/exceptions.c:119:1: warning: missing initializer [-Wmissing-field-initializers]
src/core/exceptions.c:119:1: warning: (near initialization for ‘no_arg_callsite.has_flattening’) [-Wmissing-field-initializers]
src/core/exceptions.c: In function ‘MVM_exception_backtrace_line’:
src/core/exceptions.c:197:15: warning: pointer targets in initialization differ in signedness [-Wpointer-sign]
src/core/exceptions.c: In function ‘MVM_exception_throwcat’:
src/core/exceptions.c:292:94: warning: unused parameter ‘resume_result’ [-Wunused-parameter]
src/core/exceptions.c: In function ‘MVM_exception_throwobj’:
src/core/exceptions.c:303:98: warning: unused parameter ‘resume_result’ [-Wunused-parameter]
compiling src/core/interp.o
src/core/interp.c: In function ‘MVM_interp_run’:
src/core/interp.c:2469:36: warning: unused variable ‘type_obj’ [-Wunused-variable]
src/core/interp.c:2522:40: warning: variable ‘cur’ set but not used [-Wunused-but-set-variable]
src/core/interp.c:3318:45: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
src/core/interp.c:3335:45: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
compiling src/core/threadcontext.o
compiling src/core/compunit.o
compiling src/core/bytecode.o
src/core/bytecode.c: In function ‘cleanup_all’:
src/core/bytecode.c:96:43: warning: unused parameter ‘tc’ [-Wunused-parameter]
src/core/bytecode.c: In function ‘get_heap_string’:
src/core/bytecode.c:118:5: warning: pointer targets in passing argument 1 of ‘read_int16’ differ in signedness [-Wpointer-sign]
src/core/bytecode.c:77:18: note: expected ‘unsigned char *’ but argument is of type ‘char *’
src/core/bytecode.c: In function ‘deserialize_strings’:
src/core/bytecode.c:244:9: warning: pointer targets in passing argument 3 of ‘MVM_string_utf8_decode’ differ in signedness [-Wpointer-sign]
In file included from src/moarvm.h:61:0,
from src/core/bytecode.c:1:
src/strings/utf8.h:1:13: note: expected ‘const char *’ but argument is of type ‘unsigned char *’
src/core/bytecode.c:223:22: warning: unused variable ‘cu_body’ [-Wunused-variable]
src/core/bytecode.c: In function ‘deserialize_frames’:
src/core/bytecode.c:354:9: warning: pointer targets in passing argument 4 of ‘get_heap_string’ differ in signedness [-Wpointer-sign]
src/core/bytecode.c:116:20: note: expected ‘char *’ but argument is of type ‘unsigned char *’
src/core/bytecode.c:355:9: warning: pointer targets in passing argument 4 of ‘get_heap_string’ differ in signedness [-Wpointer-sign]
src/core/bytecode.c:116:20: note: expected ‘char *’ but argument is of type ‘unsigned char *’
src/core/bytecode.c:394:17: warning: pointer targets in passing argument 4 of ‘get_heap_string’ differ in signedness [-Wpointer-sign]
src/core/bytecode.c:116:20: note: expected ‘char *’ but argument is of type ‘unsigned char *’
src/core/bytecode.c:310:51: warning: unused variable ‘num_locals’ [-Wunused-variable]
src/core/bytecode.c:307:22: warning: unused variable ‘cu_body’ [-Wunused-variable]
src/core/bytecode.c: In function ‘MVM_bytecode_resolve_annotation’:
src/core/bytecode.c:581:5: warning: comparison of unsigned expression >= 0 is always true [-Wtype-limits]
src/core/bytecode.c:582:29: warning: pointer targets in initialization differ in signedness [-Wpointer-sign]
src/core/bytecode.c:584:13: warning: pointer targets in passing argument 1 of ‘read_int32’ differ in signedness [-Wpointer-sign]
src/core/bytecode.c:70:18: note: expected ‘unsigned char *’ but argument is of type ‘signed char *’
src/core/bytecode.c:585:28: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
src/core/bytecode.c:593:13: warning: pointer targets in passing argument 1 of ‘read_int32’ differ in signedness [-Wpointer-sign]
src/core/bytecode.c:70:18: note: expected ‘unsigned char *’ but argument is of type ‘signed char *’
src/core/bytecode.c:594:13: warning: pointer targets in passing argument 1 of ‘read_int16’ differ in signedness [-Wpointer-sign]
src/core/bytecode.c:77:18: note: expected ‘unsigned char *’ but argument is of type ‘signed char *’
src/core/bytecode.c:595:13: warning: pointer targets in passing argument 1 of ‘read_int32’ differ in signedness [-Wpointer-sign]
src/core/bytecode.c:70:18: note: expected ‘unsigned char *’ but argument is of type ‘signed char *’
src/core/bytecode.c:579:18: warning: unused variable ‘j’ [-Wunused-variable]
src/core/bytecode.c:577:75: warning: unused parameter ‘tc’ [-Wunused-parameter]
src/core/bytecode.c: At top level:
src/core/bytecode.c:63:18: warning: ‘read_int64’ defined but not used [-Wunused-function]
src/core/bytecode.c:89:15: warning: ‘read_double’ defined but not used [-Wunused-function]
compiling src/core/frame.o
src/core/frame.c: In function ‘MVM_frame_inc_ref’:
src/core/frame.c:38:48: warning: unused parameter ‘tc’ [-Wunused-parameter]
compiling src/core/validation.o
src/core/validation.c: In function ‘cleanup_all’:
src/core/validation.c:20:43: warning: unused parameter ‘tc’ [-Wunused-parameter]
src/core/validation.c: In function ‘MVM_validate_static_frame’:
src/core/validation.c:192:87: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
src/core/validation.c: In function ‘MVM_bytecode_offset_to_instr_idx’:
src/core/validation.c:291:62: warning: unused parameter ‘tc’ [-Wunused-parameter]
compiling src/core/bytecodedump.o
src/core/bytecodedump.c: In function ‘MVM_bytecode_dump’:
src/core/bytecodedump.c:62:24: warning: unused variable ‘q’ [-Wunused-variable]
compiling src/core/threads.o
src/core/threads.c: In function ‘MVM_thread_start’:
src/core/threads.c:118:9: warning: passing argument 2 of ‘AO_fetch_compare_and_swap_full’ makes integer from pointer without a cast [enabled by default]
In file included from 3rdparty/libatomic_ops/src/atomic_ops.h:241:0,
from src/moarvm.h:5,
from src/core/threads.c:1:
3rdparty/libatomic_ops/src/atomic_ops/sysdeps/gcc/x86.h:160:1: note: expected ‘size_t’ but argument is of type ‘struct MVMThread *’
src/core/threads.c:118:9: warning: passing argument 3 of ‘AO_fetch_compare_and_swap_full’ makes integer from pointer without a cast [enabled by default]
In file included from 3rdparty/libatomic_ops/src/atomic_ops.h:241:0,
from src/moarvm.h:5,
from src/core/threads.c:1:
3rdparty/libatomic_ops/src/atomic_ops/sysdeps/gcc/x86.h:160:1: note: expected ‘size_t’ but argument is of type ‘struct MVMThread *’
src/core/threads.c:118:86: warning: comparison between pointer and integer [enabled by default]
src/core/threads.c: In function ‘MVM_thread_join’:
src/core/threads.c:150:22: error: ‘APR_SUCCESS’ undeclared (first use in this function)
src/core/threads.c:150:22: note: each undeclared identifier is reported only once for each function it appears in
src/core/threads.c: In function ‘MVM_thread_cleanup_threads_list’:
src/core/threads.c:163:56: warning: unused parameter ‘tc’ [-Wunused-parameter]
make: *** [src/core/threads.o] Error 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment