WARNING: [license.mk] Every package should define a LICENSE. ===> Building for freesci-0.3.5nb16 cd . && autoheader WARNING: 'autoheader' is missing on your system. You should only need it if you modified 'acconfig.h' or 'configure.in'. You might want to install the Autoconf and GNU m4 packages. Grab them from any GNU archive site. /opt/pkg/bin/bmake all-recursive Making all in doc Making all in misc Making all in man Making all in desktop Making all in src Making all in scicore clang -DHAVE_CONFIG_H -I. -I. -I../.. -I../../src/include -DPNG_NO_ASSEMBLER_CODE -I/opt/pkg/include/SDL -I/opt/pkg/include -I/opt/pkg/include/ncurses -I/opt/pkg/include/freetype2 -no-cpp-precomp -pipe -Os -I/opt/pkg/include/SDL -I/opt/pkg/include -I/opt/pkg/include/ncurses -I/opt/pkg/include/freetype2 -c console.c clang -DHAVE_CONFIG_H -I. -I. -I../.. -I../../src/include -DPNG_NO_ASSEMBLER_CODE -I/opt/pkg/include/SDL -I/opt/pkg/include -I/opt/pkg/include/ncurses -I/opt/pkg/include/freetype2 -no-cpp-precomp -pipe -Os -I/opt/pkg/include/SDL -I/opt/pkg/include -I/opt/pkg/include/ncurses -I/opt/pkg/include/freetype2 -c tools.c tools.c:756:3: warning: indirection of non-volatile null pointer will be deleted, not trap [-Wnull-dereference] BREAKPOINT(); ^~~~~~~~~~~~ ../../src/include/resource.h:499:101: note: expanded from macro 'BREAKPOINT' # define BREAKPOINT() { fprintf(stderr, "Missed breakpoint in %s, line %d\n", __FILE__, __LINE__); *((int *)NULL) = 42; } ^~~~~~~~~~~~~~ tools.c:756:3: note: consider using __builtin_trap() or qualifying pointer with 'volatile' ../../src/include/resource.h:499:101: note: expanded from macro 'BREAKPOINT' # define BREAKPOINT() { fprintf(stderr, "Missed breakpoint in %s, line %d\n", __FILE__, __LINE__); *((int *)NULL) = 42; } ^ 1 warning generated. clang -DHAVE_CONFIG_H -I. -I. -I../.. -I../../src/include -DPNG_NO_ASSEMBLER_CODE -I/opt/pkg/include/SDL -I/opt/pkg/include -I/opt/pkg/include/ncurses -I/opt/pkg/include/freetype2 -no-cpp-precomp -pipe -Os -I/opt/pkg/include/SDL -I/opt/pkg/include -I/opt/pkg/include/ncurses -I/opt/pkg/include/freetype2 -c resource.c clang -DHAVE_CONFIG_H -I. -I. -I../.. -I../../src/include -DPNG_NO_ASSEMBLER_CODE -I/opt/pkg/include/SDL -I/opt/pkg/include -I/opt/pkg/include/ncurses -I/opt/pkg/include/freetype2 -no-cpp-precomp -pipe -Os -I/opt/pkg/include/SDL -I/opt/pkg/include -I/opt/pkg/include/ncurses -I/opt/pkg/include/freetype2 -c decompress0.c decompress0.c:266:24: warning: result of comparison of constant 4194304 with expression of type 'guint16' (aka 'unsigned short') is always false [-Wtautological-constant-out-of-range-compare] (compressedLength > SCI_MAX_RESOURCE_SIZE)) ~~~~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~~~~~~~~ 1 warning generated. clang -DHAVE_CONFIG_H -I. -I. -I../.. -I../../src/include -DPNG_NO_ASSEMBLER_CODE -I/opt/pkg/include/SDL -I/opt/pkg/include -I/opt/pkg/include/ncurses -I/opt/pkg/include/freetype2 -no-cpp-precomp -pipe -Os -I/opt/pkg/include/SDL -I/opt/pkg/include -I/opt/pkg/include/ncurses -I/opt/pkg/include/freetype2 -c decompress01.c decompress01.c:202:24: warning: result of comparison of constant 4194304 with expression of type 'guint16' (aka 'unsigned short') is always false [-Wtautological-constant-out-of-range-compare] (compressedLength > SCI_MAX_RESOURCE_SIZE)) ~~~~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~~~~~~~~ 1 warning generated. clang -DHAVE_CONFIG_H -I. -I. -I../.. -I../../src/include -DPNG_NO_ASSEMBLER_CODE -I/opt/pkg/include/SDL -I/opt/pkg/include -I/opt/pkg/include/ncurses -I/opt/pkg/include/freetype2 -no-cpp-precomp -pipe -Os -I/opt/pkg/include/SDL -I/opt/pkg/include -I/opt/pkg/include/ncurses -I/opt/pkg/include/freetype2 -c decompress1.c decompress1.c:135:27: warning: shifting a negative signed value is undefined [-Wshift-negative-value] pos = tree[pos] & ~(~0 << BRANCH_SHIFT); ~~ ^ decompress1.c:348:24: warning: result of comparison of constant 4194304 with expression of type 'guint16' (aka 'unsigned short') is always false [-Wtautological-constant-out-of-range-compare] (compressedLength > SCI_MAX_RESOURCE_SIZE)) ~~~~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~~~~~~~~ 2 warnings generated. clang -DHAVE_CONFIG_H -I. -I. -I../.. -I../../src/include -DPNG_NO_ASSEMBLER_CODE -I/opt/pkg/include/SDL -I/opt/pkg/include -I/opt/pkg/include/ncurses -I/opt/pkg/include/freetype2 -no-cpp-precomp -pipe -Os -I/opt/pkg/include/SDL -I/opt/pkg/include -I/opt/pkg/include/ncurses -I/opt/pkg/include/freetype2 -c decompress11.c decompress11.c:79:24: warning: result of comparison of constant 4194304 with expression of type 'guint16' (aka 'unsigned short') is always false [-Wtautological-constant-out-of-range-compare] (compressedLength > SCI_MAX_RESOURCE_SIZE)) ~~~~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~~~~~~~~ 1 warning generated. clang -DHAVE_CONFIG_H -I. -I. -I../.. -I../../src/include -DPNG_NO_ASSEMBLER_CODE -I/opt/pkg/include/SDL -I/opt/pkg/include -I/opt/pkg/include/ncurses -I/opt/pkg/include/freetype2 -no-cpp-precomp -pipe -Os -I/opt/pkg/include/SDL -I/opt/pkg/include -I/opt/pkg/include/ncurses -I/opt/pkg/include/freetype2 -c script.c clang -DHAVE_CONFIG_H -I. -I. -I../.. -I../../src/include -DPNG_NO_ASSEMBLER_CODE -I/opt/pkg/include/SDL -I/opt/pkg/include -I/opt/pkg/include/ncurses -I/opt/pkg/include/freetype2 -no-cpp-precomp -pipe -Os -I/opt/pkg/include/SDL -I/opt/pkg/include -I/opt/pkg/include/ncurses -I/opt/pkg/include/freetype2 -c vocab.c vocab.c:380:16: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] while (tester = strchr(tempword->word, '-')) ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ vocab.c:380:16: note: place parentheses around the assignment to silence this warning while (tester = strchr(tempword->word, '-')) ^ ( ) vocab.c:380:16: note: use '==' to turn this assignment into an equality comparison while (tester = strchr(tempword->word, '-')) ^ == vocab.c:429:16: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] while (tester = strchr(tempword->word, '-')) ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ vocab.c:429:16: note: place parentheses around the assignment to silence this warning while (tester = strchr(tempword->word, '-')) ^ ( ) vocab.c:429:16: note: use '==' to turn this assignment into an equality comparison while (tester = strchr(tempword->word, '-')) ^ == 2 warnings generated. clang -DHAVE_CONFIG_H -I. -I. -I../.. -I../../src/include -DPNG_NO_ASSEMBLER_CODE -I/opt/pkg/include/SDL -I/opt/pkg/include -I/opt/pkg/include/ncurses -I/opt/pkg/include/freetype2 -no-cpp-precomp -pipe -Os -I/opt/pkg/include/SDL -I/opt/pkg/include -I/opt/pkg/include/ncurses -I/opt/pkg/include/freetype2 -c vocab_debug.c clang -DHAVE_CONFIG_H -I. -I. -I../.. -I../../src/include -DPNG_NO_ASSEMBLER_CODE -I/opt/pkg/include/SDL -I/opt/pkg/include -I/opt/pkg/include/ncurses -I/opt/pkg/include/freetype2 -no-cpp-precomp -pipe -Os -I/opt/pkg/include/SDL -I/opt/pkg/include -I/opt/pkg/include/ncurses -I/opt/pkg/include/freetype2 -c old_objects.c clang -DHAVE_CONFIG_H -I. -I. -I../.. -I../../src/include -DPNG_NO_ASSEMBLER_CODE -I/opt/pkg/include/SDL -I/opt/pkg/include -I/opt/pkg/include/ncurses -I/opt/pkg/include/freetype2 -no-cpp-precomp -pipe -Os -I/opt/pkg/include/SDL -I/opt/pkg/include -I/opt/pkg/include/ncurses -I/opt/pkg/include/freetype2 -c modules.c clang -DHAVE_CONFIG_H -I. -I. -I../.. -I../../src/include -DPNG_NO_ASSEMBLER_CODE -I/opt/pkg/include/SDL -I/opt/pkg/include -I/opt/pkg/include/ncurses -I/opt/pkg/include/freetype2 -no-cpp-precomp -pipe -Os -I/opt/pkg/include/SDL -I/opt/pkg/include -I/opt/pkg/include/ncurses -I/opt/pkg/include/freetype2 -c sci_memory.c sci_memory.c:55:2: warning: indirection of non-volatile null pointer will be deleted, not trap [-Wnull-dereference] ALLOC_MEM((res = malloc(size)), size, file, line, funct) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../../src/include/sci_memory.h:134:3: note: expanded from macro 'ALLOC_MEM' BREAKPOINT()\ ^~~~~~~~~~~~ ../../src/include/resource.h:499:101: note: expanded from macro 'BREAKPOINT' # define BREAKPOINT() { fprintf(stderr, "Missed breakpoint in %s, line %d\n", __FILE__, __LINE__); *((int *)NULL) = 42; } ^~~~~~~~~~~~~~ sci_memory.c:55:2: note: consider using __builtin_trap() or qualifying pointer with 'volatile' ../../src/include/sci_memory.h:134:3: note: expanded from macro 'ALLOC_MEM' BREAKPOINT()\ ^ ../../src/include/resource.h:499:101: note: expanded from macro 'BREAKPOINT' # define BREAKPOINT() { fprintf(stderr, "Missed breakpoint in %s, line %d\n", __FILE__, __LINE__); *((int *)NULL) = 42; } ^ sci_memory.c:55:2: warning: indirection of non-volatile null pointer will be deleted, not trap [-Wnull-dereference] ALLOC_MEM((res = malloc(size)), size, file, line, funct) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../../src/include/sci_memory.h:147:3: note: expanded from macro 'ALLOC_MEM' BREAKPOINT()\ ^~~~~~~~~~~~ ../../src/include/resource.h:499:101: note: expanded from macro 'BREAKPOINT' # define BREAKPOINT() { fprintf(stderr, "Missed breakpoint in %s, line %d\n", __FILE__, __LINE__); *((int *)NULL) = 42; } ^~~~~~~~~~~~~~ sci_memory.c:55:2: note: consider using __builtin_trap() or qualifying pointer with 'volatile' ../../src/include/sci_memory.h:147:3: note: expanded from macro 'ALLOC_MEM' BREAKPOINT()\ ^ ../../src/include/resource.h:499:101: note: expanded from macro 'BREAKPOINT' # define BREAKPOINT() { fprintf(stderr, "Missed breakpoint in %s, line %d\n", __FILE__, __LINE__); *((int *)NULL) = 42; } ^ sci_memory.c:67:2: warning: indirection of non-volatile null pointer will be deleted, not trap [-Wnull-dereference] ALLOC_MEM((res = calloc(num, size)), num * size, file, line, funct) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../../src/include/sci_memory.h:134:3: note: expanded from macro 'ALLOC_MEM' BREAKPOINT()\ ^~~~~~~~~~~~ ../../src/include/resource.h:499:101: note: expanded from macro 'BREAKPOINT' # define BREAKPOINT() { fprintf(stderr, "Missed breakpoint in %s, line %d\n", __FILE__, __LINE__); *((int *)NULL) = 42; } ^~~~~~~~~~~~~~ sci_memory.c:67:2: note: consider using __builtin_trap() or qualifying pointer with 'volatile' ../../src/include/sci_memory.h:134:3: note: expanded from macro 'ALLOC_MEM' BREAKPOINT()\ ^ ../../src/include/resource.h:499:101: note: expanded from macro 'BREAKPOINT' # define BREAKPOINT() { fprintf(stderr, "Missed breakpoint in %s, line %d\n", __FILE__, __LINE__); *((int *)NULL) = 42; } ^ sci_memory.c:67:2: warning: indirection of non-volatile null pointer will be deleted, not trap [-Wnull-dereference] ALLOC_MEM((res = calloc(num, size)), num * size, file, line, funct) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../../src/include/sci_memory.h:147:3: note: expanded from macro 'ALLOC_MEM' BREAKPOINT()\ ^~~~~~~~~~~~ ../../src/include/resource.h:499:101: note: expanded from macro 'BREAKPOINT' # define BREAKPOINT() { fprintf(stderr, "Missed breakpoint in %s, line %d\n", __FILE__, __LINE__); *((int *)NULL) = 42; } ^~~~~~~~~~~~~~ sci_memory.c:67:2: note: consider using __builtin_trap() or qualifying pointer with 'volatile' ../../src/include/sci_memory.h:147:3: note: expanded from macro 'ALLOC_MEM' BREAKPOINT()\ ^ ../../src/include/resource.h:499:101: note: expanded from macro 'BREAKPOINT' # define BREAKPOINT() { fprintf(stderr, "Missed breakpoint in %s, line %d\n", __FILE__, __LINE__); *((int *)NULL) = 42; } ^ sci_memory.c:79:2: warning: indirection of non-volatile null pointer will be deleted, not trap [-Wnull-dereference] ALLOC_MEM((res = realloc(ptr, size)), size, file, line, funct) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../../src/include/sci_memory.h:134:3: note: expanded from macro 'ALLOC_MEM' BREAKPOINT()\ ^~~~~~~~~~~~ ../../src/include/resource.h:499:101: note: expanded from macro 'BREAKPOINT' # define BREAKPOINT() { fprintf(stderr, "Missed breakpoint in %s, line %d\n", __FILE__, __LINE__); *((int *)NULL) = 42; } ^~~~~~~~~~~~~~ sci_memory.c:79:2: note: consider using __builtin_trap() or qualifying pointer with 'volatile' ../../src/include/sci_memory.h:134:3: note: expanded from macro 'ALLOC_MEM' BREAKPOINT()\ ^ ../../src/include/resource.h:499:101: note: expanded from macro 'BREAKPOINT' # define BREAKPOINT() { fprintf(stderr, "Missed breakpoint in %s, line %d\n", __FILE__, __LINE__); *((int *)NULL) = 42; } ^ sci_memory.c:79:2: warning: indirection of non-volatile null pointer will be deleted, not trap [-Wnull-dereference] ALLOC_MEM((res = realloc(ptr, size)), size, file, line, funct) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../../src/include/sci_memory.h:147:3: note: expanded from macro 'ALLOC_MEM' BREAKPOINT()\ ^~~~~~~~~~~~ ../../src/include/resource.h:499:101: note: expanded from macro 'BREAKPOINT' # define BREAKPOINT() { fprintf(stderr, "Missed breakpoint in %s, line %d\n", __FILE__, __LINE__); *((int *)NULL) = 42; } ^~~~~~~~~~~~~~ sci_memory.c:79:2: note: consider using __builtin_trap() or qualifying pointer with 'volatile' ../../src/include/sci_memory.h:147:3: note: expanded from macro 'ALLOC_MEM' BREAKPOINT()\ ^ ../../src/include/resource.h:499:101: note: expanded from macro 'BREAKPOINT' # define BREAKPOINT() { fprintf(stderr, "Missed breakpoint in %s, line %d\n", __FILE__, __LINE__); *((int *)NULL) = 42; } ^ sci_memory.c:95:3: warning: indirection of non-volatile null pointer will be deleted, not trap [-Wnull-dereference] BREAKPOINT(); ^~~~~~~~~~~~ ../../src/include/resource.h:499:101: note: expanded from macro 'BREAKPOINT' # define BREAKPOINT() { fprintf(stderr, "Missed breakpoint in %s, line %d\n", __FILE__, __LINE__); *((int *)NULL) = 42; } ^~~~~~~~~~~~~~ sci_memory.c:95:3: note: consider using __builtin_trap() or qualifying pointer with 'volatile' ../../src/include/resource.h:499:101: note: expanded from macro 'BREAKPOINT' # define BREAKPOINT() { fprintf(stderr, "Missed breakpoint in %s, line %d\n", __FILE__, __LINE__); *((int *)NULL) = 42; } ^ sci_memory.c:113:3: warning: indirection of non-volatile null pointer will be deleted, not trap [-Wnull-dereference] BREAKPOINT(); ^~~~~~~~~~~~ ../../src/include/resource.h:499:101: note: expanded from macro 'BREAKPOINT' # define BREAKPOINT() { fprintf(stderr, "Missed breakpoint in %s, line %d\n", __FILE__, __LINE__); *((int *)NULL) = 42; } ^~~~~~~~~~~~~~ sci_memory.c:113:3: note: consider using __builtin_trap() or qualifying pointer with 'volatile' ../../src/include/resource.h:499:101: note: expanded from macro 'BREAKPOINT' # define BREAKPOINT() { fprintf(stderr, "Missed breakpoint in %s, line %d\n", __FILE__, __LINE__); *((int *)NULL) = 42; } ^ sci_memory.c:115:2: warning: indirection of non-volatile null pointer will be deleted, not trap [-Wnull-dereference] ALLOC_MEM((res = malloc(size)), size, file, line, funct) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../../src/include/sci_memory.h:134:3: note: expanded from macro 'ALLOC_MEM' BREAKPOINT()\ ^~~~~~~~~~~~ ../../src/include/resource.h:499:101: note: expanded from macro 'BREAKPOINT' # define BREAKPOINT() { fprintf(stderr, "Missed breakpoint in %s, line %d\n", __FILE__, __LINE__); *((int *)NULL) = 42; } ^~~~~~~~~~~~~~ sci_memory.c:115:2: note: consider using __builtin_trap() or qualifying pointer with 'volatile' ../../src/include/sci_memory.h:134:3: note: expanded from macro 'ALLOC_MEM' BREAKPOINT()\ ^ ../../src/include/resource.h:499:101: note: expanded from macro 'BREAKPOINT' # define BREAKPOINT() { fprintf(stderr, "Missed breakpoint in %s, line %d\n", __FILE__, __LINE__); *((int *)NULL) = 42; } ^ sci_memory.c:115:2: warning: indirection of non-volatile null pointer will be deleted, not trap [-Wnull-dereference] ALLOC_MEM((res = malloc(size)), size, file, line, funct) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../../src/include/sci_memory.h:147:3: note: expanded from macro 'ALLOC_MEM' BREAKPOINT()\ ^~~~~~~~~~~~ ../../src/include/resource.h:499:101: note: expanded from macro 'BREAKPOINT' # define BREAKPOINT() { fprintf(stderr, "Missed breakpoint in %s, line %d\n", __FILE__, __LINE__); *((int *)NULL) = 42; } ^~~~~~~~~~~~~~ sci_memory.c:115:2: note: consider using __builtin_trap() or qualifying pointer with 'volatile' ../../src/include/sci_memory.h:147:3: note: expanded from macro 'ALLOC_MEM' BREAKPOINT()\ ^ ../../src/include/resource.h:499:101: note: expanded from macro 'BREAKPOINT' # define BREAKPOINT() { fprintf(stderr, "Missed breakpoint in %s, line %d\n", __FILE__, __LINE__); *((int *)NULL) = 42; } ^ sci_memory.c:133:3: warning: indirection of non-volatile null pointer will be deleted, not trap [-Wnull-dereference] BREAKPOINT(); ^~~~~~~~~~~~ ../../src/include/resource.h:499:101: note: expanded from macro 'BREAKPOINT' # define BREAKPOINT() { fprintf(stderr, "Missed breakpoint in %s, line %d\n", __FILE__, __LINE__); *((int *)NULL) = 42; } ^~~~~~~~~~~~~~ sci_memory.c:133:3: note: consider using __builtin_trap() or qualifying pointer with 'volatile' ../../src/include/resource.h:499:101: note: expanded from macro 'BREAKPOINT' # define BREAKPOINT() { fprintf(stderr, "Missed breakpoint in %s, line %d\n", __FILE__, __LINE__); *((int *)NULL) = 42; } ^ sci_memory.c:135:2: warning: indirection of non-volatile null pointer will be deleted, not trap [-Wnull-dereference] ALLOC_MEM((res = strdup(src)), strlen(src), file, line, funct) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../../src/include/sci_memory.h:134:3: note: expanded from macro 'ALLOC_MEM' BREAKPOINT()\ ^~~~~~~~~~~~ ../../src/include/resource.h:499:101: note: expanded from macro 'BREAKPOINT' # define BREAKPOINT() { fprintf(stderr, "Missed breakpoint in %s, line %d\n", __FILE__, __LINE__); *((int *)NULL) = 42; } ^~~~~~~~~~~~~~ sci_memory.c:135:2: note: consider using __builtin_trap() or qualifying pointer with 'volatile' ../../src/include/sci_memory.h:134:3: note: expanded from macro 'ALLOC_MEM' BREAKPOINT()\ ^ ../../src/include/resource.h:499:101: note: expanded from macro 'BREAKPOINT' # define BREAKPOINT() { fprintf(stderr, "Missed breakpoint in %s, line %d\n", __FILE__, __LINE__); *((int *)NULL) = 42; } ^ sci_memory.c:135:2: warning: indirection of non-volatile null pointer will be deleted, not trap [-Wnull-dereference] ALLOC_MEM((res = strdup(src)), strlen(src), file, line, funct) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../../src/include/sci_memory.h:147:3: note: expanded from macro 'ALLOC_MEM' BREAKPOINT()\ ^~~~~~~~~~~~ ../../src/include/resource.h:499:101: note: expanded from macro 'BREAKPOINT' # define BREAKPOINT() { fprintf(stderr, "Missed breakpoint in %s, line %d\n", __FILE__, __LINE__); *((int *)NULL) = 42; } ^~~~~~~~~~~~~~ sci_memory.c:135:2: note: consider using __builtin_trap() or qualifying pointer with 'volatile' ../../src/include/sci_memory.h:147:3: note: expanded from macro 'ALLOC_MEM' BREAKPOINT()\ ^ ../../src/include/resource.h:499:101: note: expanded from macro 'BREAKPOINT' # define BREAKPOINT() { fprintf(stderr, "Missed breakpoint in %s, line %d\n", __FILE__, __LINE__); *((int *)NULL) = 42; } ^ sci_memory.c:156:34: warning: format specifies type 'unsigned long' but the argument has type 'int' [-Wformat] ALLOC_MEM((res = malloc(rlen)), rlen, file, line, funct) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ ../../src/include/sci_memory.h:133:16: note: expanded from macro 'ALLOC_MEM' PANIC_MEMORY(size, filename, linenum, funcname, "Cannot allocate negative bytes of memory!")\ ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../../src/include/sci_memory.h:108:3: note: expanded from macro 'PANIC_MEMORY' size, filename, funcname, linenum, strerror(errno))) ^~~~ ../../src/include/sci_memory.h:91:10: note: expanded from macro 'PANIC' fprintf prn; ^~~ sci_memory.c:156:34: warning: format specifies type 'unsigned long' but the argument has type 'int' [-Wformat] ALLOC_MEM((res = malloc(rlen)), rlen, file, line, funct) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ ../../src/include/sci_memory.h:138:16: note: expanded from macro 'ALLOC_MEM' PANIC_MEMORY(size, filename, linenum, funcname, "WARNING: allocating zero bytes of memory.")\ ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../../src/include/sci_memory.h:108:3: note: expanded from macro 'PANIC_MEMORY' size, filename, funcname, linenum, strerror(errno))) ^~~~ ../../src/include/sci_memory.h:91:10: note: expanded from macro 'PANIC' fprintf prn; ^~~ sci_memory.c:156:34: warning: format specifies type 'unsigned long' but the argument has type 'int' [-Wformat] ALLOC_MEM((res = malloc(rlen)), rlen, file, line, funct) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ ../../src/include/sci_memory.h:146:16: note: expanded from macro 'ALLOC_MEM' PANIC_MEMORY(size, filename, linenum, funcname, "Failed! Exiting...")\ ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../../src/include/sci_memory.h:108:3: note: expanded from macro 'PANIC_MEMORY' size, filename, funcname, linenum, strerror(errno))) ^~~~ ../../src/include/sci_memory.h:91:10: note: expanded from macro 'PANIC' fprintf prn; ^~~ sci_memory.c:154:3: warning: indirection of non-volatile null pointer will be deleted, not trap [-Wnull-dereference] BREAKPOINT(); ^~~~~~~~~~~~ ../../src/include/resource.h:499:101: note: expanded from macro 'BREAKPOINT' # define BREAKPOINT() { fprintf(stderr, "Missed breakpoint in %s, line %d\n", __FILE__, __LINE__); *((int *)NULL) = 42; } ^~~~~~~~~~~~~~ sci_memory.c:154:3: note: consider using __builtin_trap() or qualifying pointer with 'volatile' ../../src/include/resource.h:499:101: note: expanded from macro 'BREAKPOINT' # define BREAKPOINT() { fprintf(stderr, "Missed breakpoint in %s, line %d\n", __FILE__, __LINE__); *((int *)NULL) = 42; } ^ sci_memory.c:156:2: warning: indirection of non-volatile null pointer will be deleted, not trap [-Wnull-dereference] ALLOC_MEM((res = malloc(rlen)), rlen, file, line, funct) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../../src/include/sci_memory.h:134:3: note: expanded from macro 'ALLOC_MEM' BREAKPOINT()\ ^~~~~~~~~~~~ ../../src/include/resource.h:499:101: note: expanded from macro 'BREAKPOINT' # define BREAKPOINT() { fprintf(stderr, "Missed breakpoint in %s, line %d\n", __FILE__, __LINE__); *((int *)NULL) = 42; } ^~~~~~~~~~~~~~ sci_memory.c:156:2: note: consider using __builtin_trap() or qualifying pointer with 'volatile' ../../src/include/sci_memory.h:134:3: note: expanded from macro 'ALLOC_MEM' BREAKPOINT()\ ^ ../../src/include/resource.h:499:101: note: expanded from macro 'BREAKPOINT' # define BREAKPOINT() { fprintf(stderr, "Missed breakpoint in %s, line %d\n", __FILE__, __LINE__); *((int *)NULL) = 42; } ^ sci_memory.c:156:2: warning: indirection of non-volatile null pointer will be deleted, not trap [-Wnull-dereference] ALLOC_MEM((res = malloc(rlen)), rlen, file, line, funct) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../../src/include/sci_memory.h:147:3: note: expanded from macro 'ALLOC_MEM' BREAKPOINT()\ ^~~~~~~~~~~~ ../../src/include/resource.h:499:101: note: expanded from macro 'BREAKPOINT' # define BREAKPOINT() { fprintf(stderr, "Missed breakpoint in %s, line %d\n", __FILE__, __LINE__); *((int *)NULL) = 42; } ^~~~~~~~~~~~~~ sci_memory.c:156:2: note: consider using __builtin_trap() or qualifying pointer with 'volatile' ../../src/include/sci_memory.h:147:3: note: expanded from macro 'ALLOC_MEM' BREAKPOINT()\ ^ ../../src/include/resource.h:499:101: note: expanded from macro 'BREAKPOINT' # define BREAKPOINT() { fprintf(stderr, "Missed breakpoint in %s, line %d\n", __FILE__, __LINE__); *((int *)NULL) = 42; } ^ 19 warnings generated. clang -DHAVE_CONFIG_H -I. -I. -I../.. -I../../src/include -DPNG_NO_ASSEMBLER_CODE -I/opt/pkg/include/SDL -I/opt/pkg/include -I/opt/pkg/include/ncurses -I/opt/pkg/include/freetype2 -no-cpp-precomp -pipe -Os -I/opt/pkg/include/SDL -I/opt/pkg/include -I/opt/pkg/include/ncurses -I/opt/pkg/include/freetype2 -c resource_map.c clang -DHAVE_CONFIG_H -I. -I. -I../.. -I../../src/include -DPNG_NO_ASSEMBLER_CODE -I/opt/pkg/include/SDL -I/opt/pkg/include -I/opt/pkg/include/ncurses -I/opt/pkg/include/freetype2 -no-cpp-precomp -pipe -Os -I/opt/pkg/include/SDL -I/opt/pkg/include -I/opt/pkg/include/ncurses -I/opt/pkg/include/freetype2 -c resource_patch.c clang -DHAVE_CONFIG_H -I. -I. -I../.. -I../../src/include -DPNG_NO_ASSEMBLER_CODE -I/opt/pkg/include/SDL -I/opt/pkg/include -I/opt/pkg/include/ncurses -I/opt/pkg/include/freetype2 -no-cpp-precomp -pipe -Os -I/opt/pkg/include/SDL -I/opt/pkg/include -I/opt/pkg/include/ncurses -I/opt/pkg/include/freetype2 -c fnmatch.c clang -DHAVE_CONFIG_H -I. -I. -I../.. -I../../src/include -DPNG_NO_ASSEMBLER_CODE -I/opt/pkg/include/SDL -I/opt/pkg/include -I/opt/pkg/include/ncurses -I/opt/pkg/include/freetype2 -no-cpp-precomp -pipe -Os -I/opt/pkg/include/SDL -I/opt/pkg/include -I/opt/pkg/include/ncurses -I/opt/pkg/include/freetype2 -c versions.c rm -f libscicore.a ar cru libscicore.a console.o tools.o resource.o decompress0.o decompress01.o decompress1.o decompress11.o script.o vocab.o vocab_debug.o old_objects.o modules.o sci_memory.o resource_map.o resource_patch.o fnmatch.o versions.o ranlib libscicore.a Making all in engine clang -DHAVE_CONFIG_H -I. -I. -I../.. -I../../src/include -DPNG_NO_ASSEMBLER_CODE -I/opt/pkg/include/SDL -I/opt/pkg/include -I/opt/pkg/include/ncurses -I/opt/pkg/include/freetype2 -no-cpp-precomp -pipe -Os -I/opt/pkg/include/SDL -I/opt/pkg/include -I/opt/pkg/include/ncurses -I/opt/pkg/include/freetype2 -c kernel.c clang -DHAVE_CONFIG_H -I. -I. -I../.. -I../../src/include -DPNG_NO_ASSEMBLER_CODE -I/opt/pkg/include/SDL -I/opt/pkg/include -I/opt/pkg/include/ncurses -I/opt/pkg/include/freetype2 -no-cpp-precomp -pipe -Os -I/opt/pkg/include/SDL -I/opt/pkg/include -I/opt/pkg/include/ncurses -I/opt/pkg/include/freetype2 -c kscripts.c clang -DHAVE_CONFIG_H -I. -I. -I../.. -I../../src/include -DPNG_NO_ASSEMBLER_CODE -I/opt/pkg/include/SDL -I/opt/pkg/include -I/opt/pkg/include/ncurses -I/opt/pkg/include/freetype2 -no-cpp-precomp -pipe -Os -I/opt/pkg/include/SDL -I/opt/pkg/include -I/opt/pkg/include/ncurses -I/opt/pkg/include/freetype2 -c klists.c clang -DHAVE_CONFIG_H -I. -I. -I../.. -I../../src/include -DPNG_NO_ASSEMBLER_CODE -I/opt/pkg/include/SDL -I/opt/pkg/include -I/opt/pkg/include/ncurses -I/opt/pkg/include/freetype2 -no-cpp-precomp -pipe -Os -I/opt/pkg/include/SDL -I/opt/pkg/include -I/opt/pkg/include/ncurses -I/opt/pkg/include/freetype2 -c kfile.c kfile.c:991:20: warning: format string is not a string literal (potentially insecure) [-Wformat-security] fprintf(idfile, game_description); ^~~~~~~~~~~~~~~~ kfile.c:991:20: note: treat the string as an argument to avoid this fprintf(idfile, game_description); ^ "%s", 1 warning generated. clang -DHAVE_CONFIG_H -I. -I. -I../.. -I../../src/include -DPNG_NO_ASSEMBLER_CODE -I/opt/pkg/include/SDL -I/opt/pkg/include -I/opt/pkg/include/ncurses -I/opt/pkg/include/freetype2 -no-cpp-precomp -pipe -Os -I/opt/pkg/include/SDL -I/opt/pkg/include -I/opt/pkg/include/ncurses -I/opt/pkg/include/freetype2 -c kgraphics.c kgraphics.c:251:4: warning: indirection of non-volatile null pointer will be deleted, not trap [-Wnull-dereference] BREAKPOINT(); ^~~~~~~~~~~~ ../../src/include/resource.h:499:101: note: expanded from macro 'BREAKPOINT' # define BREAKPOINT() { fprintf(stderr, "Missed breakpoint in %s, line %d\n", __FILE__, __LINE__); *((int *)NULL) = 42; } ^~~~~~~~~~~~~~ kgraphics.c:251:4: note: consider using __builtin_trap() or qualifying pointer with 'volatile' ../../src/include/resource.h:499:101: note: expanded from macro 'BREAKPOINT' # define BREAKPOINT() { fprintf(stderr, "Missed breakpoint in %s, line %d\n", __FILE__, __LINE__); *((int *)NULL) = 42; } ^ kgraphics.c:1742:8: warning: indirection of non-volatile null pointer will be deleted, not trap [-Wnull-dereference] BREAKPOINT(); ^~~~~~~~~~~~ ../../src/include/resource.h:499:101: note: expanded from macro 'BREAKPOINT' # define BREAKPOINT() { fprintf(stderr, "Missed breakpoint in %s, line %d\n", __FILE__, __LINE__); *((int *)NULL) = 42; } ^~~~~~~~~~~~~~ kgraphics.c:1742:8: note: consider using __builtin_trap() or qualifying pointer with 'volatile' ../../src/include/resource.h:499:101: note: expanded from macro 'BREAKPOINT' # define BREAKPOINT() { fprintf(stderr, "Missed breakpoint in %s, line %d\n", __FILE__, __LINE__); *((int *)NULL) = 42; } ^ kgraphics.c:1862:3: warning: indirection of non-volatile null pointer will be deleted, not trap [-Wnull-dereference] BREAKPOINT(); ^~~~~~~~~~~~ ../../src/include/resource.h:499:101: note: expanded from macro 'BREAKPOINT' # define BREAKPOINT() { fprintf(stderr, "Missed breakpoint in %s, line %d\n", __FILE__, __LINE__); *((int *)NULL) = 42; } ^~~~~~~~~~~~~~ kgraphics.c:1862:3: note: consider using __builtin_trap() or qualifying pointer with 'volatile' ../../src/include/resource.h:499:101: note: expanded from macro 'BREAKPOINT' # define BREAKPOINT() { fprintf(stderr, "Missed breakpoint in %s, line %d\n", __FILE__, __LINE__); *((int *)NULL) = 42; } ^ 3 warnings generated. clang -DHAVE_CONFIG_H -I. -I. -I../.. -I../../src/include -DPNG_NO_ASSEMBLER_CODE -I/opt/pkg/include/SDL -I/opt/pkg/include -I/opt/pkg/include/ncurses -I/opt/pkg/include/freetype2 -no-cpp-precomp -pipe -Os -I/opt/pkg/include/SDL -I/opt/pkg/include -I/opt/pkg/include/ncurses -I/opt/pkg/include/freetype2 -c kmath.c clang -DHAVE_CONFIG_H -I. -I. -I../.. -I../../src/include -DPNG_NO_ASSEMBLER_CODE -I/opt/pkg/include/SDL -I/opt/pkg/include -I/opt/pkg/include/ncurses -I/opt/pkg/include/freetype2 -no-cpp-precomp -pipe -Os -I/opt/pkg/include/SDL -I/opt/pkg/include -I/opt/pkg/include/ncurses -I/opt/pkg/include/freetype2 -c kevent.c clang -DHAVE_CONFIG_H -I. -I. -I../.. -I../../src/include -DPNG_NO_ASSEMBLER_CODE -I/opt/pkg/include/SDL -I/opt/pkg/include -I/opt/pkg/include/ncurses -I/opt/pkg/include/freetype2 -no-cpp-precomp -pipe -Os -I/opt/pkg/include/SDL -I/opt/pkg/include -I/opt/pkg/include/ncurses -I/opt/pkg/include/freetype2 -c kstring.c clang -DHAVE_CONFIG_H -I. -I. -I../.. -I../../src/include -DPNG_NO_ASSEMBLER_CODE -I/opt/pkg/include/SDL -I/opt/pkg/include -I/opt/pkg/include/ncurses -I/opt/pkg/include/freetype2 -no-cpp-precomp -pipe -Os -I/opt/pkg/include/SDL -I/opt/pkg/include -I/opt/pkg/include/ncurses -I/opt/pkg/include/freetype2 -c kmenu.c clang -DHAVE_CONFIG_H -I. -I. -I../.. -I../../src/include -DPNG_NO_ASSEMBLER_CODE -I/opt/pkg/include/SDL -I/opt/pkg/include -I/opt/pkg/include/ncurses -I/opt/pkg/include/freetype2 -no-cpp-precomp -pipe -Os -I/opt/pkg/include/SDL -I/opt/pkg/include -I/opt/pkg/include/ncurses -I/opt/pkg/include/freetype2 -c kmovement.c clang -DHAVE_CONFIG_H -I. -I. -I../.. -I../../src/include -DPNG_NO_ASSEMBLER_CODE -I/opt/pkg/include/SDL -I/opt/pkg/include -I/opt/pkg/include/ncurses -I/opt/pkg/include/freetype2 -no-cpp-precomp -pipe -Os -I/opt/pkg/include/SDL -I/opt/pkg/include -I/opt/pkg/include/ncurses -I/opt/pkg/include/freetype2 -c kpathing.c clang -DHAVE_CONFIG_H -I. -I. -I../.. -I../../src/include -DPNG_NO_ASSEMBLER_CODE -I/opt/pkg/include/SDL -I/opt/pkg/include -I/opt/pkg/include/ncurses -I/opt/pkg/include/freetype2 -no-cpp-precomp -pipe -Os -I/opt/pkg/include/SDL -I/opt/pkg/include -I/opt/pkg/include/ncurses -I/opt/pkg/include/freetype2 -c ksound.c clang -DHAVE_CONFIG_H -I. -I. -I../.. -I../../src/include -DPNG_NO_ASSEMBLER_CODE -I/opt/pkg/include/SDL -I/opt/pkg/include -I/opt/pkg/include/ncurses -I/opt/pkg/include/freetype2 -no-cpp-precomp -pipe -Os -I/opt/pkg/include/SDL -I/opt/pkg/include -I/opt/pkg/include/ncurses -I/opt/pkg/include/freetype2 -c vm.c clang -DHAVE_CONFIG_H -I. -I. -I../.. -I../../src/include -DPNG_NO_ASSEMBLER_CODE -I/opt/pkg/include/SDL -I/opt/pkg/include -I/opt/pkg/include/ncurses -I/opt/pkg/include/freetype2 -no-cpp-precomp -pipe -Os -I/opt/pkg/include/SDL -I/opt/pkg/include -I/opt/pkg/include/ncurses -I/opt/pkg/include/freetype2 -c game.c clang -DHAVE_CONFIG_H -I. -I. -I../.. -I../../src/include -DPNG_NO_ASSEMBLER_CODE -I/opt/pkg/include/SDL -I/opt/pkg/include -I/opt/pkg/include/ncurses -I/opt/pkg/include/freetype2 -no-cpp-precomp -pipe -Os -I/opt/pkg/include/SDL -I/opt/pkg/include -I/opt/pkg/include/ncurses -I/opt/pkg/include/freetype2 -c scriptdebug.c scriptdebug.c:37:8: warning: extra tokens at end of #endif directive [-Wextra-tokens] #endif _MSC_VER ^ // scriptdebug.c:690:18: warning: trigraph ignored [-Wtrigraphs] sciprintf(""); ^ scriptdebug.c:1100:1: warning: implicit conversion from 'int' to 'char' changes value from 500 to -12 [-Wconstant-conversion] WARNING(fixme!) ^~~~~~~~~~~~~~~ ../../src/include/resource.h:502:35: note: expanded from macro 'WARNING' #define WARNING(foo) {char i; i = 500;} ~ ^~~ scriptdebug.c:1523:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] c_gfx_update_zone(state_t *s) ^ scriptdebug.c:2036:83: warning: if statement has empty body [-Wempty-body] if (!sound_command_default(s, SOUND_COMMAND_INIT_HANDLE, 42, cmd_params[1].val)); { ^ scriptdebug.c:2036:83: note: put the semicolon on a separate line to silence this warning scriptdebug.c:2080:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] c_sndmap(state_t *s) ^ 6 warnings generated. clang -DHAVE_CONFIG_H -I. -I. -I../.. -I../../src/include -DPNG_NO_ASSEMBLER_CODE -I/opt/pkg/include/SDL -I/opt/pkg/include -I/opt/pkg/include/ncurses -I/opt/pkg/include/freetype2 -no-cpp-precomp -pipe -Os -I/opt/pkg/include/SDL -I/opt/pkg/include -I/opt/pkg/include/ncurses -I/opt/pkg/include/freetype2 -c heap.c clang -DHAVE_CONFIG_H -I. -I. -I../.. -I../../src/include -DPNG_NO_ASSEMBLER_CODE -I/opt/pkg/include/SDL -I/opt/pkg/include -I/opt/pkg/include/ncurses -I/opt/pkg/include/freetype2 -no-cpp-precomp -pipe -Os -I/opt/pkg/include/SDL -I/opt/pkg/include -I/opt/pkg/include/ncurses -I/opt/pkg/include/freetype2 -c simplesaid.c clang -DHAVE_CONFIG_H -I. -I. -I../.. -I../../src/include -DPNG_NO_ASSEMBLER_CODE -I/opt/pkg/include/SDL -I/opt/pkg/include -I/opt/pkg/include/ncurses -I/opt/pkg/include/freetype2 -no-cpp-precomp -pipe -Os -I/opt/pkg/include/SDL -I/opt/pkg/include -I/opt/pkg/include/ncurses -I/opt/pkg/include/freetype2 -c grammar.c clang -DHAVE_CONFIG_H -I. -I. -I../.. -I../../src/include -DPNG_NO_ASSEMBLER_CODE -I/opt/pkg/include/SDL -I/opt/pkg/include -I/opt/pkg/include/ncurses -I/opt/pkg/include/freetype2 -no-cpp-precomp -pipe -Os -I/opt/pkg/include/SDL -I/opt/pkg/include -I/opt/pkg/include/ncurses -I/opt/pkg/include/freetype2 -c savegame.c savegame.cfsml:502:26: warning: passing 'unsigned int *' to parameter of type 'int *' converts between pointers to integer types with different sign [-Wpointer-sign] _cfsml_write_int(fh, &(save_struc->sound_mute)); ^~~~~~~~~~~~~~~~~~~~~~~~~ savegame.cfsml:432:33: note: passing argument to parameter 'save_struc' here _cfsml_write_int(FILE *fh, int* save_struc); ^ savegame.cfsml:505:26: warning: passing 'unsigned int *' to parameter of type 'int *' converts between pointers to integer types with different sign [-Wpointer-sign] _cfsml_write_int(fh, &(save_struc->sound_volume)); ^~~~~~~~~~~~~~~~~~~~~~~~~~~ savegame.cfsml:432:33: note: passing argument to parameter 'save_struc' here _cfsml_write_int(FILE *fh, int* save_struc); ^ savegame.cfsml:520:26: warning: incompatible pointer types passing 'gfxw_visual_t **' (aka 'struct _gfxw_visual **') to parameter of type 'gfxw_widget_t **' (aka 'struct _gfxw_widget **') [-Wincompatible-pointer-types] write_any_widget(fh, &(save_struc->visual)); ^~~~~~~~~~~~~~~~~~~~~ savegame.c:155:44: note: passing argument to parameter 'widget' here write_any_widget(FILE *fh, gfxw_widget_t **widget); ^ savegame.cfsml:498:26: warning: passing 'unsigned int *' to parameter of type 'int *' converts between pointers to integer types with different sign [-Wpointer-sign] _cfsml_write_int(fh, &(save_struc->_heap->first_free)); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ savegame.cfsml:432:33: note: passing argument to parameter 'save_struc' here _cfsml_write_int(FILE *fh, int* save_struc); ^ savegame.cfsml:504:23: warning: format specifies type 'int' but the argument has type 'long' [-Wformat] fprintf(fh, "%d", save_struc->_heap->base - save_struc->_heap->start); /* Relative pointer */ ~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ %ld savegame.cfsml:507:23: warning: format specifies type 'int' but the argument has type 'long' [-Wformat] fprintf(fh, "%d", save_struc->game_name - save_struc->_heap->start); /* Relative pointer */ ~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ %ld savegame.cfsml:749:34: warning: passing 'unsigned int *' to parameter of type 'int *' converts between pointers to integer types with different sign [-Wpointer-sign] if (_cfsml_read_int(fh, &(save_struc->sound_mute), value, line, hiteof)) { ^~~~~~~~~~~~~~~~~~~~~~~~~ savegame.cfsml:434:32: note: passing argument to parameter 'save_struc' here _cfsml_read_int(FILE *fh, int* save_struc, char *lastval, int *line, int *hiteof); ^ savegame.cfsml:749:34: warning: passing 'unsigned int *' to parameter of type 'int *' converts between pointers to integer types with different sign [-Wpointer-sign] if (_cfsml_read_int(fh, &(save_struc->sound_volume), value, line, hiteof)) { ^~~~~~~~~~~~~~~~~~~~~~~~~~~ savegame.cfsml:434:32: note: passing argument to parameter 'save_struc' here _cfsml_read_int(FILE *fh, int* save_struc, char *lastval, int *line, int *hiteof); ^ savegame.cfsml:749:34: warning: incompatible pointer types passing 'gfxw_visual_t **' (aka 'struct _gfxw_visual **') to parameter of type 'gfxw_widget_t **' (aka 'struct _gfxw_widget **') [-Wincompatible-pointer-types] if (read_any_widget(fh, &(save_struc->visual), value, line, hiteof)) { ^~~~~~~~~~~~~~~~~~~~~ savegame.c:157:43: note: passing argument to parameter 'widget' here read_any_widget(FILE *fh, gfxw_widget_t **widget, char *lastval, int *line, int *hiteof); ^ savegame.cfsml:749:34: warning: passing 'unsigned int *' to parameter of type 'int *' converts between pointers to integer types with different sign [-Wpointer-sign] if (_cfsml_read_int(fh, &(save_struc->_heap->first_free), value, line, hiteof)) { ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ savegame.cfsml:434:32: note: passing argument to parameter 'save_struc' here _cfsml_read_int(FILE *fh, int* save_struc, char *lastval, int *line, int *hiteof); ^ savegame.cfsml:496:38: warning: incompatible pointer types passing 'gfx_line_style_t *' to parameter of type 'gfx_line_mode_t *' [-Wincompatible-pointer-types] _cfsml_write_gfx_line_mode_t(fh, &(save_struc->line_style)); ^~~~~~~~~~~~~~~~~~~~~~~~~ savegame.cfsml:432:57: note: passing argument to parameter 'save_struc' here _cfsml_write_gfx_line_mode_t(FILE *fh, gfx_line_mode_t* save_struc); ^ savegame.cfsml:749:46: warning: incompatible pointer types passing 'gfx_line_style_t *' to parameter of type 'gfx_line_mode_t *' [-Wincompatible-pointer-types] if (_cfsml_read_gfx_line_mode_t(fh, &(save_struc->line_style), value, line, hiteof)) { ^~~~~~~~~~~~~~~~~~~~~~~~~ savegame.cfsml:434:56: note: passing argument to parameter 'save_struc' here _cfsml_read_gfx_line_mode_t(FILE *fh, gfx_line_mode_t* save_struc, char *lastval, int *line, int *hiteof); ^ savegame.cfsml:502:26: warning: incompatible pointer types passing 'gfxw_list_t **' (aka 'struct _gfxw_container_widget **') to parameter of type 'gfxw_widget_t **' (aka 'struct _gfxw_widget **') [-Wincompatible-pointer-types] write_any_widget(fh, &(save_struc->decorations)); ^~~~~~~~~~~~~~~~~~~~~~~~~~ savegame.c:155:44: note: passing argument to parameter 'widget' here write_any_widget(FILE *fh, gfxw_widget_t **widget); ^ savegame.cfsml:749:34: warning: incompatible pointer types passing 'gfxw_list_t **' (aka 'struct _gfxw_container_widget **') to parameter of type 'gfxw_widget_t **' (aka 'struct _gfxw_widget **') [-Wincompatible-pointer-types] if (read_any_widget(fh, &(save_struc->decorations), value, line, hiteof)) { ^~~~~~~~~~~~~~~~~~~~~~~~~~ savegame.c:157:43: note: passing argument to parameter 'widget' here read_any_widget(FILE *fh, gfxw_widget_t **widget, char *lastval, int *line, int *hiteof); ^ savegame.cfsml:768:10: warning: enumeration values 'GFXW_' and 'GFXW_CONTAINER' not handled in switch [-Wswitch] switch (widget->type) { ^ savegame.cfsml:768:10: note: add missing switch cases switch (widget->type) { ^ savegame.cfsml:1270:10: warning: passing 'byte *' (aka 'unsigned char *') to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] strcpy(retval->heap + retval->save_dir + 2, s->heap + s->save_dir + 2); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Applications/Xcode-13.4.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.3.sdk/usr/include/secure/_string.h:84:27: note: expanded from macro 'strcpy' __builtin___strcpy_chk (dest, __VA_ARGS__, __darwin_obsz (dest)) ^~~~ savegame.cfsml:1270:47: warning: passing 'byte *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] strcpy(retval->heap + retval->save_dir + 2, s->heap + s->save_dir + 2); ^~~~~~~~~~~~~~~~~~~~~~~~~ /Applications/Xcode-13.4.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.3.sdk/usr/include/secure/_string.h:84:33: note: expanded from macro 'strcpy' __builtin___strcpy_chk (dest, __VA_ARGS__, __darwin_obsz (dest)) ^~~~~~~~~~~ savegame.cfsml:1323:11: warning: passing 'byte *' (aka 'unsigned char *') to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] strcpy(retval->heap + retval->save_dir + 2, cwd); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Applications/Xcode-13.4.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.3.sdk/usr/include/secure/_string.h:84:27: note: expanded from macro 'strcpy' __builtin___strcpy_chk (dest, __VA_ARGS__, __darwin_obsz (dest)) ^~~~ 18 warnings generated. clang -DHAVE_CONFIG_H -I. -I. -I../.. -I../../src/include -DPNG_NO_ASSEMBLER_CODE -I/opt/pkg/include/SDL -I/opt/pkg/include -I/opt/pkg/include/ncurses -I/opt/pkg/include/freetype2 -no-cpp-precomp -pipe -Os -I/opt/pkg/include/SDL -I/opt/pkg/include -I/opt/pkg/include/ncurses -I/opt/pkg/include/freetype2 -c said.c said.y:330:26: warning: unsequenced modification and access to 'said_tree_pos' [-Wunsequenced] return said_branch_node(SAID_NEXT_NODE, ^ said.y:287:120: note: expanded from macro 'SAID_NEXT_NODE' #define SAID_NEXT_NODE ((said_tree_pos == 0) || (said_tree_pos >= VOCAB_TREE_NODES))? said_tree_pos = 0 : said_tree_pos++ ^ said.y:349:28: warning: unsequenced modification and access to 'said_tree_pos' [-Wunsequenced] retval = said_branch_node(SAID_NEXT_NODE, ^ said.y:287:120: note: expanded from macro 'SAID_NEXT_NODE' #define SAID_NEXT_NODE ((said_tree_pos == 0) || (said_tree_pos >= VOCAB_TREE_NODES))? said_tree_pos = 0 : said_tree_pos++ ^ 2 warnings generated. rm -f libsciengine.a ar cru libsciengine.a savegame.o kernel.o kscripts.o klists.o kfile.o kgraphics.o kmath.o kevent.o kstring.o kmenu.o kmovement.o kpathing.o ksound.o vm.o game.o scriptdebug.o heap.o simplesaid.o said.o grammar.o ranlib libsciengine.a Making all in include Making all in win32 Making all in beos Making all in gfx Making all in resource clang -DHAVE_CONFIG_H -I. -I. -I../../.. -I../../../src/include -DPNG_NO_ASSEMBLER_CODE -I/opt/pkg/include/SDL -I/opt/pkg/include -I/opt/pkg/include/ncurses -I/opt/pkg/include/freetype2 -no-cpp-precomp -pipe -Os -I/opt/pkg/include/SDL -I/opt/pkg/include -I/opt/pkg/include/ncurses -I/opt/pkg/include/freetype2 -c sci_font.c clang -DHAVE_CONFIG_H -I. -I. -I../../.. -I../../../src/include -DPNG_NO_ASSEMBLER_CODE -I/opt/pkg/include/SDL -I/opt/pkg/include -I/opt/pkg/include/ncurses -I/opt/pkg/include/freetype2 -no-cpp-precomp -pipe -Os -I/opt/pkg/include/SDL -I/opt/pkg/include -I/opt/pkg/include/ncurses -I/opt/pkg/include/freetype2 -c sci_resmgr.c sci_resmgr.c:216:13: warning: expression result unused [-Wunused-value] GFX_DEBUG("Unsupported resource %d\n", type); ^~~~~~~~~~~~~~~~~~~~~~~~~~~ sci_resmgr.c:216:42: warning: expression result unused [-Wunused-value] GFX_DEBUG("Unsupported resource %d\n", type); ^~~~ 2 warnings generated. clang -DHAVE_CONFIG_H -I. -I. -I../../.. -I../../../src/include -DPNG_NO_ASSEMBLER_CODE -I/opt/pkg/include/SDL -I/opt/pkg/include -I/opt/pkg/include/ncurses -I/opt/pkg/include/freetype2 -no-cpp-precomp -pipe -Os -I/opt/pkg/include/SDL -I/opt/pkg/include -I/opt/pkg/include/ncurses -I/opt/pkg/include/freetype2 -c sci_pic_0.c sci_pic_0.c:127:1: warning: implicit conversion from 'int' to 'char' changes value from 500 to -12 [-Wconstant-conversion] WARNING("Uncomment me after fixing sci0_palette changes to reset me"); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../../../src/include/resource.h:502:35: note: expanded from macro 'WARNING' #define WARNING(foo) {char i; i = 500;} ~ ^~~ sci_pic_0.c:636:3: warning: indirection of non-volatile null pointer will be deleted, not trap [-Wnull-dereference] BREAKPOINT(); ^~~~~~~~~~~~ ../../../src/include/resource.h:499:101: note: expanded from macro 'BREAKPOINT' # define BREAKPOINT() { fprintf(stderr, "Missed breakpoint in %s, line %d\n", __FILE__, __LINE__); *((int *)NULL) = 42; } ^~~~~~~~~~~~~~ sci_pic_0.c:636:3: note: consider using __builtin_trap() or qualifying pointer with 'volatile' ../../../src/include/resource.h:499:101: note: expanded from macro 'BREAKPOINT' # define BREAKPOINT() { fprintf(stderr, "Missed breakpoint in %s, line %d\n", __FILE__, __LINE__); *((int *)NULL) = 42; } ^ sci_pic_0.c:831:19: warning: expression result unused [-Wunused-value] p0printf(stderr, "Pattern at (%d,%d) size %d, rand=%d, code=%02x\n", x, y, pattern_size, pattern_nr, pattern_code); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ sci_pic_0.c:831:71: warning: expression result unused [-Wunused-value] p0printf(stderr, "Pattern at (%d,%d) size %d, rand=%d, code=%02x\n", x, y, pattern_size, pattern_nr, pattern_code); ^ sci_pic_0.c:831:74: warning: expression result unused [-Wunused-value] p0printf(stderr, "Pattern at (%d,%d) size %d, rand=%d, code=%02x\n", x, y, pattern_size, pattern_nr, pattern_code); ^ sci_pic_0.c:831:77: warning: expression result unused [-Wunused-value] p0printf(stderr, "Pattern at (%d,%d) size %d, rand=%d, code=%02x\n", x, y, pattern_size, pattern_nr, pattern_code); ^~~~~~~~~~~~ sci_pic_0.c:831:91: warning: expression result unused [-Wunused-value] p0printf(stderr, "Pattern at (%d,%d) size %d, rand=%d, code=%02x\n", x, y, pattern_size, pattern_nr, pattern_code); ^~~~~~~~~~ sci_pic_0.c:831:103: warning: expression result unused [-Wunused-value] p0printf(stderr, "Pattern at (%d,%d) size %d, rand=%d, code=%02x\n", x, y, pattern_size, pattern_nr, pattern_code); ^~~~~~~~~~~~ sci_pic_0.c:981:12: warning: expression result unused [-Wunused-value] p0printf(" ctl:%x", control); ^~~~~~~~~ sci_pic_0.c:981:23: warning: expression result unused [-Wunused-value] p0printf(" ctl:%x", control); ^~~~~~~ sci_pic_0.c:1018:12: warning: expression result unused [-Wunused-value] p0printf(" col:%02x", color); ^~~~~~~~~~~ sci_pic_0.c:1018:25: warning: expression result unused [-Wunused-value] p0printf(" col:%02x", color); ^~~~~ sci_pic_0.c:1021:12: warning: expression result unused [-Wunused-value] p0printf(" pri:%x", priority); ^~~~~~~~~ sci_pic_0.c:1021:23: warning: expression result unused [-Wunused-value] p0printf(" pri:%x", priority); ^~~~~~~~ sci_pic_0.c:1086:11: warning: expression result unused [-Wunused-value] p0printf("\n"); ^~~~ In file included from sci_pic_0.c:1183: ./sci_picfill_aux.c:68:68: warning: indirection of non-volatile null pointer will be deleted, not trap [-Wnull-dereference] if ((ytotal + xl) < 0) { fprintf(stderr,"AARGH-%d\n", __LINE__); BREAKPOINT(); } ^~~~~~~~~~~~ ../../../src/include/resource.h:499:101: note: expanded from macro 'BREAKPOINT' # define BREAKPOINT() { fprintf(stderr, "Missed breakpoint in %s, line %d\n", __FILE__, __LINE__); *((int *)NULL) = 42; } ^~~~~~~~~~~~~~ ./sci_picfill_aux.c:68:68: note: consider using __builtin_trap() or qualifying pointer with 'volatile' ../../../src/include/resource.h:499:101: note: expanded from macro 'BREAKPOINT' # define BREAKPOINT() { fprintf(stderr, "Missed breakpoint in %s, line %d\n", __FILE__, __LINE__); *((int *)NULL) = 42; } ^ In file included from sci_pic_0.c:1183: ./sci_picfill_aux.c:77:3: warning: indirection of non-volatile null pointer will be deleted, not trap [-Wnull-dereference] BREAKPOINT(); ^~~~~~~~~~~~ ../../../src/include/resource.h:499:101: note: expanded from macro 'BREAKPOINT' # define BREAKPOINT() { fprintf(stderr, "Missed breakpoint in %s, line %d\n", __FILE__, __LINE__); *((int *)NULL) = 42; } ^~~~~~~~~~~~~~ ./sci_picfill_aux.c:77:3: note: consider using __builtin_trap() or qualifying pointer with 'volatile' ../../../src/include/resource.h:499:101: note: expanded from macro 'BREAKPOINT' # define BREAKPOINT() { fprintf(stderr, "Missed breakpoint in %s, line %d\n", __FILE__, __LINE__); *((int *)NULL) = 42; } ^ In file included from sci_pic_0.c:1183: ./sci_picfill_aux.c:132:68: warning: indirection of non-volatile null pointer will be deleted, not trap [-Wnull-dereference] if ((ytotal + xl) < 0) { fprintf(stderr,"AARGH-%d\n", __LINE__); BREAKPOINT() } ^~~~~~~~~~~~ ../../../src/include/resource.h:499:101: note: expanded from macro 'BREAKPOINT' # define BREAKPOINT() { fprintf(stderr, "Missed breakpoint in %s, line %d\n", __FILE__, __LINE__); *((int *)NULL) = 42; } ^~~~~~~~~~~~~~ ./sci_picfill_aux.c:132:68: note: consider using __builtin_trap() or qualifying pointer with 'volatile' ../../../src/include/resource.h:499:101: note: expanded from macro 'BREAKPOINT' # define BREAKPOINT() { fprintf(stderr, "Missed breakpoint in %s, line %d\n", __FILE__, __LINE__); *((int *)NULL) = 42; } ^ In file included from sci_pic_0.c:1183: ./sci_picfill_aux.c:133:74: warning: indirection of non-volatile null pointer will be deleted, not trap [-Wnull-dereference] if ((ytotal + xr+1) > 64000) { fprintf(stderr,"AARGH-%d\n", __LINE__); BREAKPOINT(); } ^~~~~~~~~~~~ ../../../src/include/resource.h:499:101: note: expanded from macro 'BREAKPOINT' # define BREAKPOINT() { fprintf(stderr, "Missed breakpoint in %s, line %d\n", __FILE__, __LINE__); *((int *)NULL) = 42; } ^~~~~~~~~~~~~~ ./sci_picfill_aux.c:133:74: note: consider using __builtin_trap() or qualifying pointer with 'volatile' ../../../src/include/resource.h:499:101: note: expanded from macro 'BREAKPOINT' # define BREAKPOINT() { fprintf(stderr, "Missed breakpoint in %s, line %d\n", __FILE__, __LINE__); *((int *)NULL) = 42; } ^ In file included from sci_pic_0.c:1198: ./sci_picfill_aux.c:68:68: warning: indirection of non-volatile null pointer will be deleted, not trap [-Wnull-dereference] if ((ytotal + xl) < 0) { fprintf(stderr,"AARGH-%d\n", __LINE__); BREAKPOINT(); } ^~~~~~~~~~~~ ../../../src/include/resource.h:499:101: note: expanded from macro 'BREAKPOINT' # define BREAKPOINT() { fprintf(stderr, "Missed breakpoint in %s, line %d\n", __FILE__, __LINE__); *((int *)NULL) = 42; } ^~~~~~~~~~~~~~ ./sci_picfill_aux.c:68:68: note: consider using __builtin_trap() or qualifying pointer with 'volatile' ../../../src/include/resource.h:499:101: note: expanded from macro 'BREAKPOINT' # define BREAKPOINT() { fprintf(stderr, "Missed breakpoint in %s, line %d\n", __FILE__, __LINE__); *((int *)NULL) = 42; } ^ In file included from sci_pic_0.c:1198: ./sci_picfill_aux.c:77:3: warning: indirection of non-volatile null pointer will be deleted, not trap [-Wnull-dereference] BREAKPOINT(); ^~~~~~~~~~~~ ../../../src/include/resource.h:499:101: note: expanded from macro 'BREAKPOINT' # define BREAKPOINT() { fprintf(stderr, "Missed breakpoint in %s, line %d\n", __FILE__, __LINE__); *((int *)NULL) = 42; } ^~~~~~~~~~~~~~ ./sci_picfill_aux.c:77:3: note: consider using __builtin_trap() or qualifying pointer with 'volatile' ../../../src/include/resource.h:499:101: note: expanded from macro 'BREAKPOINT' # define BREAKPOINT() { fprintf(stderr, "Missed breakpoint in %s, line %d\n", __FILE__, __LINE__); *((int *)NULL) = 42; } ^ In file included from sci_pic_0.c:1198: ./sci_picfill_aux.c:132:68: warning: indirection of non-volatile null pointer will be deleted, not trap [-Wnull-dereference] if ((ytotal + xl) < 0) { fprintf(stderr,"AARGH-%d\n", __LINE__); BREAKPOINT() } ^~~~~~~~~~~~ ../../../src/include/resource.h:499:101: note: expanded from macro 'BREAKPOINT' # define BREAKPOINT() { fprintf(stderr, "Missed breakpoint in %s, line %d\n", __FILE__, __LINE__); *((int *)NULL) = 42; } ^~~~~~~~~~~~~~ ./sci_picfill_aux.c:132:68: note: consider using __builtin_trap() or qualifying pointer with 'volatile' ../../../src/include/resource.h:499:101: note: expanded from macro 'BREAKPOINT' # define BREAKPOINT() { fprintf(stderr, "Missed breakpoint in %s, line %d\n", __FILE__, __LINE__); *((int *)NULL) = 42; } ^ In file included from sci_pic_0.c:1198: ./sci_picfill_aux.c:133:74: warning: indirection of non-volatile null pointer will be deleted, not trap [-Wnull-dereference] if ((ytotal + xr+1) > 64000) { fprintf(stderr,"AARGH-%d\n", __LINE__); BREAKPOINT(); } ^~~~~~~~~~~~ ../../../src/include/resource.h:499:101: note: expanded from macro 'BREAKPOINT' # define BREAKPOINT() { fprintf(stderr, "Missed breakpoint in %s, line %d\n", __FILE__, __LINE__); *((int *)NULL) = 42; } ^~~~~~~~~~~~~~ ./sci_picfill_aux.c:133:74: note: consider using __builtin_trap() or qualifying pointer with 'volatile' ../../../src/include/resource.h:499:101: note: expanded from macro 'BREAKPOINT' # define BREAKPOINT() { fprintf(stderr, "Missed breakpoint in %s, line %d\n", __FILE__, __LINE__); *((int *)NULL) = 42; } ^ sci_pic_0.c:1444:13: warning: expression result unused [-Wunused-value] p0printf("Set color @%d\n", pos); ^~~~~~~~~~~~~~~~~ sci_pic_0.c:1444:32: warning: expression result unused [-Wunused-value] p0printf("Set color @%d\n", pos); ^~~ sci_pic_0.c:1458:13: warning: expression result unused [-Wunused-value] p0printf(" color <- %02x [%d/%d]\n", color, pal, index); ^~~~~~~~~~~~~~~~~~~~~~~~~~~ sci_pic_0.c:1458:42: warning: expression result unused [-Wunused-value] p0printf(" color <- %02x [%d/%d]\n", color, pal, index); ^~~~~ sci_pic_0.c:1458:49: warning: expression result unused [-Wunused-value] p0printf(" color <- %02x [%d/%d]\n", color, pal, index); ^~~ sci_pic_0.c:1458:54: warning: expression result unused [-Wunused-value] p0printf(" color <- %02x [%d/%d]\n", color, pal, index); ^~~~~ sci_pic_0.c:1464:13: warning: expression result unused [-Wunused-value] p0printf("Disable visual @%d\n", pos); ^~~~~~~~~~~~~~~~~~~~~~ sci_pic_0.c:1464:37: warning: expression result unused [-Wunused-value] p0printf("Disable visual @%d\n", pos); ^~~ sci_pic_0.c:1470:13: warning: expression result unused [-Wunused-value] p0printf("Set priority @%d\n", pos); ^~~~~~~~~~~~~~~~~~~~ sci_pic_0.c:1470:35: warning: expression result unused [-Wunused-value] p0printf("Set priority @%d\n", pos); ^~~ sci_pic_0.c:1478:13: warning: expression result unused [-Wunused-value] p0printf(" priority <- %d [%d/%d]\n", priority, pal, index); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ sci_pic_0.c:1478:43: warning: expression result unused [-Wunused-value] p0printf(" priority <- %d [%d/%d]\n", priority, pal, index); ^~~~~~~~ sci_pic_0.c:1478:53: warning: expression result unused [-Wunused-value] p0printf(" priority <- %d [%d/%d]\n", priority, pal, index); ^~~ sci_pic_0.c:1478:58: warning: expression result unused [-Wunused-value] p0printf(" priority <- %d [%d/%d]\n", priority, pal, index); ^~~~~ sci_pic_0.c:1484:13: warning: expression result unused [-Wunused-value] p0printf("Disable priority @%d\n", pos); ^~~~~~~~~~~~~~~~~~~~~~~~ sci_pic_0.c:1484:39: warning: expression result unused [-Wunused-value] p0printf("Disable priority @%d\n", pos); ^~~ sci_pic_0.c:1490:13: warning: expression result unused [-Wunused-value] p0printf("Short patterns @%d\n", pos); ^~~~~~~~~~~~~~~~~~~~~~ sci_pic_0.c:1490:37: warning: expression result unused [-Wunused-value] p0printf("Short patterns @%d\n", pos); ^~~ sci_pic_0.c:1493:14: warning: expression result unused [-Wunused-value] p0printf(" pattern_nr <- %d\n", pattern_nr); ^~~~~~~~~~~~~~~~~~~~~~ sci_pic_0.c:1493:38: warning: expression result unused [-Wunused-value] p0printf(" pattern_nr <- %d\n", pattern_nr); ^~~~~~~~~~ sci_pic_0.c:1504:15: warning: expression result unused [-Wunused-value] p0printf(" pattern_nr <- %d\n", pattern_nr); ^~~~~~~~~~~~~~~~~~~~~~ sci_pic_0.c:1504:39: warning: expression result unused [-Wunused-value] p0printf(" pattern_nr <- %d\n", pattern_nr); ^~~~~~~~~~ sci_pic_0.c:1516:13: warning: expression result unused [-Wunused-value] p0printf("Medium lines @%d\n", pos); ^~~~~~~~~~~~~~~~~~~~ sci_pic_0.c:1516:35: warning: expression result unused [-Wunused-value] p0printf("Medium lines @%d\n", pos); ^~~ sci_pic_0.c:1534:13: warning: expression result unused [-Wunused-value] p0printf("Long lines @%d\n", pos); ^~~~~~~~~~~~~~~~~~ sci_pic_0.c:1534:33: warning: expression result unused [-Wunused-value] p0printf("Long lines @%d\n", pos); ^~~ sci_pic_0.c:1545:13: warning: expression result unused [-Wunused-value] p0printf("Short lines @%d\n", pos); ^~~~~~~~~~~~~~~~~~~ sci_pic_0.c:1545:34: warning: expression result unused [-Wunused-value] p0printf("Short lines @%d\n", pos); ^~~ sci_pic_0.c:1557:13: warning: expression result unused [-Wunused-value] p0printf("Fill @%d\n", pos); ^~~~~~~~~~~~ sci_pic_0.c:1557:27: warning: expression result unused [-Wunused-value] p0printf("Fill @%d\n", pos); ^~~ sci_pic_0.c:1561:14: warning: expression result unused [-Wunused-value] p0printf("Abs coords %d,%d\n", x, y); ^~~~~~~~~~~~~~~~~~~~ sci_pic_0.c:1561:36: warning: expression result unused [-Wunused-value] p0printf("Abs coords %d,%d\n", x, y); ^ sci_pic_0.c:1561:39: warning: expression result unused [-Wunused-value] p0printf("Abs coords %d,%d\n", x, y); ^ sci_pic_0.c:1617:13: warning: expression result unused [-Wunused-value] p0printf("Set pattern @%d\n", pos); ^~~~~~~~~~~~~~~~~~~ sci_pic_0.c:1617:34: warning: expression result unused [-Wunused-value] p0printf("Set pattern @%d\n", pos); ^~~ sci_pic_0.c:1624:13: warning: expression result unused [-Wunused-value] p0printf("Absolute pattern @%d\n", pos); ^~~~~~~~~~~~~~~~~~~~~~~~ sci_pic_0.c:1624:39: warning: expression result unused [-Wunused-value] p0printf("Absolute pattern @%d\n", pos); ^~~ sci_pic_0.c:1628:15: warning: expression result unused [-Wunused-value] p0printf(" pattern_nr <- %d\n", pattern_nr); ^~~~~~~~~~~~~~~~~~~~~~ sci_pic_0.c:1628:39: warning: expression result unused [-Wunused-value] p0printf(" pattern_nr <- %d\n", pattern_nr); ^~~~~~~~~~ sci_pic_0.c:1640:13: warning: expression result unused [-Wunused-value] p0printf("Set control @%d\n", pos); ^~~~~~~~~~~~~~~~~~~ sci_pic_0.c:1640:34: warning: expression result unused [-Wunused-value] p0printf("Set control @%d\n", pos); ^~~ sci_pic_0.c:1647:13: warning: expression result unused [-Wunused-value] p0printf("Disable control @%d\n", pos); ^~~~~~~~~~~~~~~~~~~~~~~ sci_pic_0.c:1647:38: warning: expression result unused [-Wunused-value] p0printf("Disable control @%d\n", pos); ^~~ sci_pic_0.c:1653:13: warning: expression result unused [-Wunused-value] p0printf("Medium patterns @%d\n", pos); ^~~~~~~~~~~~~~~~~~~~~~~ sci_pic_0.c:1653:38: warning: expression result unused [-Wunused-value] p0printf("Medium patterns @%d\n", pos); ^~~ sci_pic_0.c:1656:14: warning: expression result unused [-Wunused-value] p0printf(" pattern_nr <- %d\n", pattern_nr); ^~~~~~~~~~~~~~~~~~~~~~ sci_pic_0.c:1656:38: warning: expression result unused [-Wunused-value] p0printf(" pattern_nr <- %d\n", pattern_nr); ^~~~~~~~~~ sci_pic_0.c:1668:15: warning: expression result unused [-Wunused-value] p0printf(" pattern_nr <- %d\n", pattern_nr); ^~~~~~~~~~~~~~~~~~~~~~ sci_pic_0.c:1668:39: warning: expression result unused [-Wunused-value] p0printf(" pattern_nr <- %d\n", pattern_nr); ^~~~~~~~~~ sci_pic_0.c:1681:13: warning: expression result unused [-Wunused-value] p0printf("OPX: "); ^~~~~~~ sci_pic_0.c:1687:14: warning: expression result unused [-Wunused-value] p0printf("Set palette entry @%d\n", pos); ^~~~~~~~~~~~~~~~~~~~~~~~~ sci_pic_0.c:1687:41: warning: expression result unused [-Wunused-value] p0printf("Set palette entry @%d\n", pos); ^~~ sci_pic_0.c:1703:14: warning: expression result unused [-Wunused-value] p0printf("Set palette @%d\n", pos); ^~~~~~~~~~~~~~~~~~~ sci_pic_0.c:1703:35: warning: expression result unused [-Wunused-value] p0printf("Set palette @%d\n", pos); ^~~ sci_pic_0.c:1710:14: warning: expression result unused [-Wunused-value] p0printf(" palette[%d] <- (", pal); ^~~~~~~~~~~~~~~~~~~~ sci_pic_0.c:1710:36: warning: expression result unused [-Wunused-value] p0printf(" palette[%d] <- (", pal); ^~~ sci_pic_0.c:1714:16: warning: expression result unused [-Wunused-value] p0printf(","); ^~~ sci_pic_0.c:1716:16: warning: expression result unused [-Wunused-value] p0printf("[%d]=", index); ^~~~~~~ sci_pic_0.c:1716:25: warning: expression result unused [-Wunused-value] p0printf("[%d]=", index); ^~~~~ sci_pic_0.c:1717:15: warning: expression result unused [-Wunused-value] p0printf("%02x", palette[pal][index]); ^~~~~~ sci_pic_0.c:1717:41: warning: expression result unused [-Wunused-value] p0printf("%02x", palette[pal][index]); ~~~~~~~~~~~~ ~~~~~^ sci_pic_0.c:1719:14: warning: expression result unused [-Wunused-value] p0printf(")\n"); ^~~~~ sci_pic_0.c:1724:14: warning: expression result unused [-Wunused-value] p0printf("Monochrome opx 0 @%d\n", pos); ^~~~~~~~~~~~~~~~~~~~~~~~ sci_pic_0.c:1724:40: warning: expression result unused [-Wunused-value] p0printf("Monochrome opx 0 @%d\n", pos); ^~~ sci_pic_0.c:1732:14: warning: expression result unused [-Wunused-value] p0printf("Monochrome opx %d @%d\n", opx, pos); ^~~~~~~~~~~~~~~~~~~~~~~~~ sci_pic_0.c:1732:41: warning: expression result unused [-Wunused-value] p0printf("Monochrome opx %d @%d\n", opx, pos); ^~~ sci_pic_0.c:1732:46: warning: expression result unused [-Wunused-value] p0printf("Monochrome opx %d @%d\n", opx, pos); ^~~ sci_pic_0.c:1738:14: warning: expression result unused [-Wunused-value] p0printf("Monochrome opx %d @%d\n", opx, pos); ^~~~~~~~~~~~~~~~~~~~~~~~~ sci_pic_0.c:1738:41: warning: expression result unused [-Wunused-value] p0printf("Monochrome opx %d @%d\n", opx, pos); ^~~ sci_pic_0.c:1738:46: warning: expression result unused [-Wunused-value] p0printf("Monochrome opx %d @%d\n", opx, pos); ^~~ sci_pic_0.c:1753:14: warning: expression result unused [-Wunused-value] p0printf("Set priority table @%d\n", pos); ^~~~~~~~~~~~~~~~~~~~~~~~~~ sci_pic_0.c:1753:42: warning: expression result unused [-Wunused-value] p0printf("Set priority table @%d\n", pos); ^~~ sci_pic_0.c:1774:13: warning: expression result unused [-Wunused-value] p0printf("Terminator\n"); ^~~~~~~~~~~~~~ 96 warnings generated. clang -DHAVE_CONFIG_H -I. -I. -I../../.. -I../../../src/include -DPNG_NO_ASSEMBLER_CODE -I/opt/pkg/include/SDL -I/opt/pkg/include -I/opt/pkg/include/ncurses -I/opt/pkg/include/freetype2 -no-cpp-precomp -pipe -Os -I/opt/pkg/include/SDL -I/opt/pkg/include -I/opt/pkg/include/ncurses -I/opt/pkg/include/freetype2 -c sci_view_0.c clang -DHAVE_CONFIG_H -I. -I. -I../../.. -I../../../src/include -DPNG_NO_ASSEMBLER_CODE -I/opt/pkg/include/SDL -I/opt/pkg/include -I/opt/pkg/include/ncurses -I/opt/pkg/include/freetype2 -no-cpp-precomp -pipe -Os -I/opt/pkg/include/SDL -I/opt/pkg/include -I/opt/pkg/include/ncurses -I/opt/pkg/include/freetype2 -c sci_cursor_0.c clang -DHAVE_CONFIG_H -I. -I. -I../../.. -I../../../src/include -DPNG_NO_ASSEMBLER_CODE -I/opt/pkg/include/SDL -I/opt/pkg/include -I/opt/pkg/include/ncurses -I/opt/pkg/include/freetype2 -no-cpp-precomp -pipe -Os -I/opt/pkg/include/SDL -I/opt/pkg/include -I/opt/pkg/include/ncurses -I/opt/pkg/include/freetype2 -c sci_pal_1.c clang -DHAVE_CONFIG_H -I. -I. -I../../.. -I../../../src/include -DPNG_NO_ASSEMBLER_CODE -I/opt/pkg/include/SDL -I/opt/pkg/include -I/opt/pkg/include/ncurses -I/opt/pkg/include/freetype2 -no-cpp-precomp -pipe -Os -I/opt/pkg/include/SDL -I/opt/pkg/include -I/opt/pkg/include/ncurses -I/opt/pkg/include/freetype2 -c sci_view_1.c rm -f libsciresources.a ar cru libsciresources.a sci_font.o sci_resmgr.o sci_pic_0.o sci_view_0.o sci_cursor_0.o sci_pal_1.o sci_view_1.o ranlib libsciresources.a Making all in drivers clang -DHAVE_CONFIG_H -I. -I. -I../../.. -I../../../src/include -DPNG_NO_ASSEMBLER_CODE -I/opt/pkg/include/SDL -I/opt/pkg/include -I/opt/pkg/include/ncurses -I/opt/pkg/include/freetype2 -no-cpp-precomp -pipe -Os -I/opt/pkg/include/SDL -I/opt/pkg/include -I/opt/pkg/include/ncurses -I/opt/pkg/include/freetype2 -I/opt/pkg/include/SDL -D_GNU_SOURCE=1 -D_THREAD_SAFE -no-cpp-precomp -pipe -Os -I/opt/pkg/include/SDL -I/opt/pkg/include -I/opt/pkg/include/ncurses -I/opt/pkg/include/freetype2 -c gfx_drivers.c clang -DHAVE_CONFIG_H -I. -I. -I../../.. -I../../../src/include -DPNG_NO_ASSEMBLER_CODE -I/opt/pkg/include/SDL -I/opt/pkg/include -I/opt/pkg/include/ncurses -I/opt/pkg/include/freetype2 -no-cpp-precomp -pipe -Os -I/opt/pkg/include/SDL -I/opt/pkg/include -I/opt/pkg/include/ncurses -I/opt/pkg/include/freetype2 -I/opt/pkg/include/SDL -D_GNU_SOURCE=1 -D_THREAD_SAFE -no-cpp-precomp -pipe -Os -I/opt/pkg/include/SDL -I/opt/pkg/include -I/opt/pkg/include/ncurses -I/opt/pkg/include/freetype2 -c xlib_driver.c xlib_driver.c:336:3: warning: indirection of non-volatile null pointer will be deleted, not trap [-Wnull-dereference] BREAKPOINT(); ^~~~~~~~~~~~ ../../../src/include/resource.h:499:101: note: expanded from macro 'BREAKPOINT' # define BREAKPOINT() { fprintf(stderr, "Missed breakpoint in %s, line %d\n", __FILE__, __LINE__); *((int *)NULL) = 42; } ^~~~~~~~~~~~~~ xlib_driver.c:336:3: note: consider using __builtin_trap() or qualifying pointer with 'volatile' ../../../src/include/resource.h:499:101: note: expanded from macro 'BREAKPOINT' # define BREAKPOINT() { fprintf(stderr, "Missed breakpoint in %s, line %d\n", __FILE__, __LINE__); *((int *)NULL) = 42; } ^ xlib_driver.c:689:10: warning: format specifies type 'unsigned int' but the argument has type 'unsigned long' [-Wformat] visual->red_mask, visual->green_mask, visual->blue_mask, ^~~~~~~~~~~~~~~~ xlib_driver.c:689:28: warning: format specifies type 'unsigned int' but the argument has type 'unsigned long' [-Wformat] visual->red_mask, visual->green_mask, visual->blue_mask, ^~~~~~~~~~~~~~~~~~ xlib_driver.c:689:48: warning: format specifies type 'unsigned int' but the argument has type 'unsigned long' [-Wformat] visual->red_mask, visual->green_mask, visual->blue_mask, ^~~~~~~~~~~~~~~~~ xlib_driver.c:1085:30: warning: operator '>>' has lower precedence than '+'; '+' will be evaluated first [-Wshift-op-parentheses] int real_xl = (pointer->xl + 7 >> 3) << 3; ~~~~~~~~~~~~^~~ ~~ xlib_driver.c:1085:30: note: place parentheses around the '+' expression to silence this warning int real_xl = (pointer->xl + 7 >> 3) << 3; ^ ( ) xlib_driver.c:1142:16: warning: 'XKeycodeToKeysym' is deprecated [-Wdeprecated-declarations] KeySym xkey = XKeycodeToKeysym(S->display, keycode, 0); ^ /Users/pbulk/build/games/freesci/work/.buildlink/include/X11/Xlib.h:1682:1: note: 'XKeycodeToKeysym' has been explicitly marked deprecated here _X_DEPRECATED ^ /Users/pbulk/build/games/freesci/work/.buildlink/include/X11/Xfuncproto.h:136:40: note: expanded from macro '_X_DEPRECATED' # define _X_DEPRECATED __attribute__((deprecated)) ^ xlib_driver.c:1150:23: warning: 'XKeycodeToKeysym' is deprecated [-Wdeprecated-declarations] KeySym xkey = XKeycodeToKeysym(S->display, key_event->xkey.keycode, 0); ^ /Users/pbulk/build/games/freesci/work/.buildlink/include/X11/Xlib.h:1682:1: note: 'XKeycodeToKeysym' has been explicitly marked deprecated here _X_DEPRECATED ^ /Users/pbulk/build/games/freesci/work/.buildlink/include/X11/Xfuncproto.h:136:40: note: expanded from macro '_X_DEPRECATED' # define _X_DEPRECATED __attribute__((deprecated)) ^ 7 warnings generated. clang -DHAVE_CONFIG_H -I. -I. -I../../.. -I../../../src/include -DPNG_NO_ASSEMBLER_CODE -I/opt/pkg/include/SDL -I/opt/pkg/include -I/opt/pkg/include/ncurses -I/opt/pkg/include/freetype2 -no-cpp-precomp -pipe -Os -I/opt/pkg/include/SDL -I/opt/pkg/include -I/opt/pkg/include/ncurses -I/opt/pkg/include/freetype2 -I/opt/pkg/include/SDL -D_GNU_SOURCE=1 -D_THREAD_SAFE -no-cpp-precomp -pipe -Os -I/opt/pkg/include/SDL -I/opt/pkg/include -I/opt/pkg/include/ncurses -I/opt/pkg/include/freetype2 -c ggi_driver.c clang -DHAVE_CONFIG_H -I. -I. -I../../.. -I../../../src/include -DPNG_NO_ASSEMBLER_CODE -I/opt/pkg/include/SDL -I/opt/pkg/include -I/opt/pkg/include/ncurses -I/opt/pkg/include/freetype2 -no-cpp-precomp -pipe -Os -I/opt/pkg/include/SDL -I/opt/pkg/include -I/opt/pkg/include/ncurses -I/opt/pkg/include/freetype2 -I/opt/pkg/include/SDL -D_GNU_SOURCE=1 -D_THREAD_SAFE -no-cpp-precomp -pipe -Os -I/opt/pkg/include/SDL -I/opt/pkg/include -I/opt/pkg/include/ncurses -I/opt/pkg/include/freetype2 -c sdl_driver.c sdl_driver.c:260:6: warning: logical not is only applied to the left hand side of this bitwise operator [-Wlogical-not-parentheses] if (!drv->capabilities & GFX_CAPABILITY_MOUSE_POINTER) ^ ~ sdl_driver.c:260:6: note: add parentheses after the '!' to evaluate the bitwise operator first if (!drv->capabilities & GFX_CAPABILITY_MOUSE_POINTER) ^ ( ) sdl_driver.c:260:6: note: add parentheses around left hand side expression to silence this warning if (!drv->capabilities & GFX_CAPABILITY_MOUSE_POINTER) ^ ( ) sdl_driver.c:290:31: warning: format specifies type 'unsigned int' but the argument has type 'SDL_Surface *' (aka 'struct SDL_Surface *') [-Wformat] xsize, ysize, bytespp << 3, S->primary); ^~~~~~~~~~ sdl_driver.c:143:11: note: expanded from macro 'S' #define S ((struct _sdl_state *)(drv->state)) ^ sdl_driver.c:1229:11: warning: 231 enumeration values not handled in switch: 'SDLK_UNKNOWN', 'SDLK_BACKSPACE', 'SDLK_TAB'... [-Wswitch] switch (skey) { ^ sdl_driver.c:1229:11: note: add missing switch cases switch (skey) { ^ sdl_driver.c:1235:10: warning: 165 enumeration values not handled in switch: 'SDLK_UNKNOWN', 'SDLK_CLEAR', 'SDLK_PAUSE'... [-Wswitch] switch (skey) { ^ sdl_driver.c:1235:10: note: add missing switch cases switch (skey) { ^ sdl_driver.c:1883:43: warning: '/*' within block comment [-Wcomment] /* select(0, NULL, NULL, NULL, &ctime); /* Sleep. */ ^ 5 warnings generated. clang -DHAVE_CONFIG_H -I. -I. -I../../.. -I../../../src/include -DPNG_NO_ASSEMBLER_CODE -I/opt/pkg/include/SDL -I/opt/pkg/include -I/opt/pkg/include/ncurses -I/opt/pkg/include/freetype2 -no-cpp-precomp -pipe -Os -I/opt/pkg/include/SDL -I/opt/pkg/include -I/opt/pkg/include/ncurses -I/opt/pkg/include/freetype2 -I/opt/pkg/include/SDL -D_GNU_SOURCE=1 -D_THREAD_SAFE -no-cpp-precomp -pipe -Os -I/opt/pkg/include/SDL -I/opt/pkg/include -I/opt/pkg/include/ncurses -I/opt/pkg/include/freetype2 -c directfb_driver.c clang -DHAVE_CONFIG_H -I. -I. -I../../.. -I../../../src/include -DPNG_NO_ASSEMBLER_CODE -I/opt/pkg/include/SDL -I/opt/pkg/include -I/opt/pkg/include/ncurses -I/opt/pkg/include/freetype2 -no-cpp-precomp -pipe -Os -I/opt/pkg/include/SDL -I/opt/pkg/include -I/opt/pkg/include/ncurses -I/opt/pkg/include/freetype2 -I/opt/pkg/include/SDL -D_GNU_SOURCE=1 -D_THREAD_SAFE -no-cpp-precomp -pipe -Os -I/opt/pkg/include/SDL -I/opt/pkg/include -I/opt/pkg/include/ncurses -I/opt/pkg/include/freetype2 -c null_driver.c rm -f libscidrivers.a ar cru libscidrivers.a gfx_drivers.o xlib_driver.o ggi_driver.o sdl_driver.o directfb_driver.o null_driver.o ranlib libscidrivers.a clang -DHAVE_CONFIG_H -I. -I. -I../.. -I../../src/include -DPNG_NO_ASSEMBLER_CODE -I/opt/pkg/include/SDL -I/opt/pkg/include -I/opt/pkg/include/ncurses -I/opt/pkg/include/freetype2 -no-cpp-precomp -pipe -Os -I/opt/pkg/include/SDL -I/opt/pkg/include -I/opt/pkg/include/ncurses -I/opt/pkg/include/freetype2 -I../.. -I../include -DHAVE_CONFIG_H -DFUNCT_NAME=alpha_mvi_crossblit_32 -c ../../src/gfx/alpha_mvi_crossblit.c -o ../../src/gfx/alpha_mvi_crossblit_32.o clang -DHAVE_CONFIG_H -I. -I. -I../.. -I../../src/include -DPNG_NO_ASSEMBLER_CODE -I/opt/pkg/include/SDL -I/opt/pkg/include -I/opt/pkg/include/ncurses -I/opt/pkg/include/freetype2 -no-cpp-precomp -pipe -Os -I/opt/pkg/include/SDL -I/opt/pkg/include -I/opt/pkg/include/ncurses -I/opt/pkg/include/freetype2 -I../.. -I../include -DHAVE_CONFIG_H -DPRIORITY=1 -DFUNCT_NAME=alpha_mvi_crossblit_32_P -c ../../src/gfx/alpha_mvi_crossblit.c -o ../../src/gfx/alpha_mvi_crossblit_32_P.o clang -DHAVE_CONFIG_H -I. -I. -I../.. -I../../src/include -DPNG_NO_ASSEMBLER_CODE -I/opt/pkg/include/SDL -I/opt/pkg/include -I/opt/pkg/include/ncurses -I/opt/pkg/include/freetype2 -no-cpp-precomp -pipe -Os -I/opt/pkg/include/SDL -I/opt/pkg/include -I/opt/pkg/include/ncurses -I/opt/pkg/include/freetype2 -c font.c clang -DHAVE_CONFIG_H -I. -I. -I../.. -I../../src/include -DPNG_NO_ASSEMBLER_CODE -I/opt/pkg/include/SDL -I/opt/pkg/include -I/opt/pkg/include/ncurses -I/opt/pkg/include/freetype2 -no-cpp-precomp -pipe -Os -I/opt/pkg/include/SDL -I/opt/pkg/include -I/opt/pkg/include/ncurses -I/opt/pkg/include/freetype2 -c gfx_resource.c clang -DHAVE_CONFIG_H -I. -I. -I../.. -I../../src/include -DPNG_NO_ASSEMBLER_CODE -I/opt/pkg/include/SDL -I/opt/pkg/include -I/opt/pkg/include/ncurses -I/opt/pkg/include/freetype2 -no-cpp-precomp -pipe -Os -I/opt/pkg/include/SDL -I/opt/pkg/include -I/opt/pkg/include/ncurses -I/opt/pkg/include/freetype2 -c gfx_support.c clang -DHAVE_CONFIG_H -I. -I. -I../.. -I../../src/include -DPNG_NO_ASSEMBLER_CODE -I/opt/pkg/include/SDL -I/opt/pkg/include -I/opt/pkg/include/ncurses -I/opt/pkg/include/freetype2 -no-cpp-precomp -pipe -Os -I/opt/pkg/include/SDL -I/opt/pkg/include -I/opt/pkg/include/ncurses -I/opt/pkg/include/freetype2 -c gfx_tools.c gfx_tools.c:368:3: warning: indirection of non-volatile null pointer will be deleted, not trap [-Wnull-dereference] BREAKPOINT(); ^~~~~~~~~~~~ ../../src/include/resource.h:499:101: note: expanded from macro 'BREAKPOINT' # define BREAKPOINT() { fprintf(stderr, "Missed breakpoint in %s, line %d\n", __FILE__, __LINE__); *((int *)NULL) = 42; } ^~~~~~~~~~~~~~ gfx_tools.c:368:3: note: consider using __builtin_trap() or qualifying pointer with 'volatile' ../../src/include/resource.h:499:101: note: expanded from macro 'BREAKPOINT' # define BREAKPOINT() { fprintf(stderr, "Missed breakpoint in %s, line %d\n", __FILE__, __LINE__); *((int *)NULL) = 42; } ^ 1 warning generated. clang -DHAVE_CONFIG_H -I. -I. -I../.. -I../../src/include -DPNG_NO_ASSEMBLER_CODE -I/opt/pkg/include/SDL -I/opt/pkg/include -I/opt/pkg/include/ncurses -I/opt/pkg/include/freetype2 -no-cpp-precomp -pipe -Os -I/opt/pkg/include/SDL -I/opt/pkg/include -I/opt/pkg/include/ncurses -I/opt/pkg/include/freetype2 -c operations.c operations.c:605:6: warning: logical not is only applied to the left hand side of this bitwise operator [-Wlogical-not-parentheses] if (!state->driver->capabilities & GFX_CAPABILITY_PIXMAP_GRABBING) { ^ ~ operations.c:605:6: note: add parentheses after the '!' to evaluate the bitwise operator first if (!state->driver->capabilities & GFX_CAPABILITY_PIXMAP_GRABBING) { ^ ( ) operations.c:605:6: note: add parentheses around left hand side expression to silence this warning if (!state->driver->capabilities & GFX_CAPABILITY_PIXMAP_GRABBING) { ^ ( ) operations.c:606:7: warning: logical not is only applied to the left hand side of this bitwise operator [-Wlogical-not-parentheses] if (!state->driver->capabilities & GFX_CAPABILITY_MOUSE_POINTER) { ^ ~ operations.c:606:7: note: add parentheses after the '!' to evaluate the bitwise operator first if (!state->driver->capabilities & GFX_CAPABILITY_MOUSE_POINTER) { ^ ( ) operations.c:606:7: note: add parentheses around left hand side expression to silence this warning if (!state->driver->capabilities & GFX_CAPABILITY_MOUSE_POINTER) { ^ ( ) operations.c:611:10: warning: logical not is only applied to the left hand side of this bitwise operator [-Wlogical-not-parentheses] && !state->driver->capabilities & GFX_CAPABILITY_COLOR_MOUSE_POINTER) { ^ ~ operations.c:611:10: note: add parentheses after the '!' to evaluate the bitwise operator first && !state->driver->capabilities & GFX_CAPABILITY_COLOR_MOUSE_POINTER) { ^ ( ) operations.c:611:10: note: add parentheses around left hand side expression to silence this warning && !state->driver->capabilities & GFX_CAPABILITY_COLOR_MOUSE_POINTER) { ^ ( ) operations.c:1391:3: warning: indirection of non-volatile null pointer will be deleted, not trap [-Wnull-dereference] BREAKPOINT(); ^~~~~~~~~~~~ ../../src/include/resource.h:499:101: note: expanded from macro 'BREAKPOINT' # define BREAKPOINT() { fprintf(stderr, "Missed breakpoint in %s, line %d\n", __FILE__, __LINE__); *((int *)NULL) = 42; } ^~~~~~~~~~~~~~ operations.c:1391:3: note: consider using __builtin_trap() or qualifying pointer with 'volatile' ../../src/include/resource.h:499:101: note: expanded from macro 'BREAKPOINT' # define BREAKPOINT() { fprintf(stderr, "Missed breakpoint in %s, line %d\n", __FILE__, __LINE__); *((int *)NULL) = 42; } ^ operations.c:1690:10: warning: implicitly declaring library function 'toupper' with type 'int (int)' [-Wimplicit-function-declaration] int c = toupper((char)ch); ^ operations.c:1690:10: note: include the header or explicitly provide a declaration for 'toupper' operations.c:1753:1: warning: non-void function does not return a value in all control paths [-Wreturn-type] } ^ 6 warnings generated. clang -DHAVE_CONFIG_H -I. -I. -I../.. -I../../src/include -DPNG_NO_ASSEMBLER_CODE -I/opt/pkg/include/SDL -I/opt/pkg/include -I/opt/pkg/include/ncurses -I/opt/pkg/include/freetype2 -no-cpp-precomp -pipe -Os -I/opt/pkg/include/SDL -I/opt/pkg/include -I/opt/pkg/include/ncurses -I/opt/pkg/include/freetype2 -c resmgr.c clang -DHAVE_CONFIG_H -I. -I. -I../.. -I../../src/include -DPNG_NO_ASSEMBLER_CODE -I/opt/pkg/include/SDL -I/opt/pkg/include -I/opt/pkg/include/ncurses -I/opt/pkg/include/freetype2 -no-cpp-precomp -pipe -Os -I/opt/pkg/include/SDL -I/opt/pkg/include -I/opt/pkg/include/ncurses -I/opt/pkg/include/freetype2 -c sbtree.c clang -DHAVE_CONFIG_H -I. -I. -I../.. -I../../src/include -DPNG_NO_ASSEMBLER_CODE -I/opt/pkg/include/SDL -I/opt/pkg/include -I/opt/pkg/include/ncurses -I/opt/pkg/include/freetype2 -no-cpp-precomp -pipe -Os -I/opt/pkg/include/SDL -I/opt/pkg/include -I/opt/pkg/include/ncurses -I/opt/pkg/include/freetype2 -c widgets.c widgets.c:203:5: warning: indirection of non-volatile null pointer will be deleted, not trap [-Wnull-dereference] BREAKPOINT(); ^~~~~~~~~~~~ ../../src/include/resource.h:499:101: note: expanded from macro 'BREAKPOINT' # define BREAKPOINT() { fprintf(stderr, "Missed breakpoint in %s, line %d\n", __FILE__, __LINE__); *((int *)NULL) = 42; } ^~~~~~~~~~~~~~ widgets.c:203:5: note: consider using __builtin_trap() or qualifying pointer with 'volatile' ../../src/include/resource.h:499:101: note: expanded from macro 'BREAKPOINT' # define BREAKPOINT() { fprintf(stderr, "Missed breakpoint in %s, line %d\n", __FILE__, __LINE__); *((int *)NULL) = 42; } ^ widgets.c:333:3: warning: indirection of non-volatile null pointer will be deleted, not trap [-Wnull-dereference] BREAKPOINT(); ^~~~~~~~~~~~ ../../src/include/resource.h:499:101: note: expanded from macro 'BREAKPOINT' # define BREAKPOINT() { fprintf(stderr, "Missed breakpoint in %s, line %d\n", __FILE__, __LINE__); *((int *)NULL) = 42; } ^~~~~~~~~~~~~~ widgets.c:333:3: note: consider using __builtin_trap() or qualifying pointer with 'volatile' ../../src/include/resource.h:499:101: note: expanded from macro 'BREAKPOINT' # define BREAKPOINT() { fprintf(stderr, "Missed breakpoint in %s, line %d\n", __FILE__, __LINE__); *((int *)NULL) = 42; } ^ widgets.c:355:3: warning: indirection of non-volatile null pointer will be deleted, not trap [-Wnull-dereference] BREAKPOINT(); ^~~~~~~~~~~~ ../../src/include/resource.h:499:101: note: expanded from macro 'BREAKPOINT' # define BREAKPOINT() { fprintf(stderr, "Missed breakpoint in %s, line %d\n", __FILE__, __LINE__); *((int *)NULL) = 42; } ^~~~~~~~~~~~~~ widgets.c:355:3: note: consider using __builtin_trap() or qualifying pointer with 'volatile' ../../src/include/resource.h:499:101: note: expanded from macro 'BREAKPOINT' # define BREAKPOINT() { fprintf(stderr, "Missed breakpoint in %s, line %d\n", __FILE__, __LINE__); *((int *)NULL) = 42; } ^ widgets.c:740:18: warning: operator '?:' has lower precedence than '|'; '|' will be evaluated first [-Wbitwise-conditional-parentheses] | (control < 0)? 0 : GFX_MASK_CONTROL; ~~~~~~~~~~~~~~~^ widgets.c:740:18: note: place parentheses around the '|' expression to silence this warning | (control < 0)? 0 : GFX_MASK_CONTROL; ^ ) widgets.c:740:18: note: place parentheses around the '?:' expression to evaluate it first | (control < 0)? 0 : GFX_MASK_CONTROL; ^ ( ) widgets.c:1767:3: warning: indirection of non-volatile null pointer will be deleted, not trap [-Wnull-dereference] BREAKPOINT(); ^~~~~~~~~~~~ ../../src/include/resource.h:499:101: note: expanded from macro 'BREAKPOINT' # define BREAKPOINT() { fprintf(stderr, "Missed breakpoint in %s, line %d\n", __FILE__, __LINE__); *((int *)NULL) = 42; } ^~~~~~~~~~~~~~ widgets.c:1767:3: note: consider using __builtin_trap() or qualifying pointer with 'volatile' ../../src/include/resource.h:499:101: note: expanded from macro 'BREAKPOINT' # define BREAKPOINT() { fprintf(stderr, "Missed breakpoint in %s, line %d\n", __FILE__, __LINE__); *((int *)NULL) = 42; } ^ 5 warnings generated. clang -DHAVE_CONFIG_H -I. -I. -I../.. -I../../src/include -DPNG_NO_ASSEMBLER_CODE -I/opt/pkg/include/SDL -I/opt/pkg/include -I/opt/pkg/include/ncurses -I/opt/pkg/include/freetype2 -no-cpp-precomp -pipe -Os -I/opt/pkg/include/SDL -I/opt/pkg/include -I/opt/pkg/include/ncurses -I/opt/pkg/include/freetype2 -c menubar.c clang -DHAVE_CONFIG_H -I. -I. -I../.. -I../../src/include -DPNG_NO_ASSEMBLER_CODE -I/opt/pkg/include/SDL -I/opt/pkg/include -I/opt/pkg/include/ncurses -I/opt/pkg/include/freetype2 -no-cpp-precomp -pipe -Os -I/opt/pkg/include/SDL -I/opt/pkg/include -I/opt/pkg/include/ncurses -I/opt/pkg/include/freetype2 -c sci_widgets.c clang -DHAVE_CONFIG_H -I. -I. -I../.. -I../../src/include -DPNG_NO_ASSEMBLER_CODE -I/opt/pkg/include/SDL -I/opt/pkg/include -I/opt/pkg/include/ncurses -I/opt/pkg/include/freetype2 -no-cpp-precomp -pipe -Os -I/opt/pkg/include/SDL -I/opt/pkg/include -I/opt/pkg/include/ncurses -I/opt/pkg/include/freetype2 -c antialias.c clang -DHAVE_CONFIG_H -I. -I. -I../.. -I../../src/include -DPNG_NO_ASSEMBLER_CODE -I/opt/pkg/include/SDL -I/opt/pkg/include -I/opt/pkg/include/ncurses -I/opt/pkg/include/freetype2 -no-cpp-precomp -pipe -Os -I/opt/pkg/include/SDL -I/opt/pkg/include -I/opt/pkg/include/ncurses -I/opt/pkg/include/freetype2 -c gfx_console.c clang -DHAVE_CONFIG_H -I. -I. -I../.. -I../../src/include -DPNG_NO_ASSEMBLER_CODE -I/opt/pkg/include/SDL -I/opt/pkg/include -I/opt/pkg/include/ncurses -I/opt/pkg/include/freetype2 -no-cpp-precomp -pipe -Os -I/opt/pkg/include/SDL -I/opt/pkg/include -I/opt/pkg/include/ncurses -I/opt/pkg/include/freetype2 -c font-5x8.c clang -DHAVE_CONFIG_H -I. -I. -I../.. -I../../src/include -DPNG_NO_ASSEMBLER_CODE -I/opt/pkg/include/SDL -I/opt/pkg/include -I/opt/pkg/include/ncurses -I/opt/pkg/include/freetype2 -no-cpp-precomp -pipe -Os -I/opt/pkg/include/SDL -I/opt/pkg/include -I/opt/pkg/include/ncurses -I/opt/pkg/include/freetype2 -c font-6x10.c clang -DHAVE_CONFIG_H -I. -I. -I../.. -I../../src/include -DPNG_NO_ASSEMBLER_CODE -I/opt/pkg/include/SDL -I/opt/pkg/include -I/opt/pkg/include/ncurses -I/opt/pkg/include/freetype2 -no-cpp-precomp -pipe -Os -I/opt/pkg/include/SDL -I/opt/pkg/include -I/opt/pkg/include/ncurses -I/opt/pkg/include/freetype2 -c gfx_res_options.c gfx_res_options.c:93:18: warning: implicitly declaring library function 'isblank' with type 'int (int)' [-Wimplicit-function-declaration] while (*src && isblank(*src)) ^ gfx_res_options.c:93:18: note: include the header or explicitly provide a declaration for 'isblank' gfx_res_options.c:100:29: warning: implicitly declaring library function 'isdigit' with type 'int (int)' [-Wimplicit-function-declaration] } else if (*src == '.' || isdigit(*src)) { ^ gfx_res_options.c:100:29: note: include the header or explicitly provide a declaration for 'isdigit' 2 warnings generated. rm -f libscigraphics.a ar cru libscigraphics.a font.o gfx_resource.o gfx_support.o gfx_tools.o operations.o resmgr.o sbtree.o widgets.o menubar.o sci_widgets.o antialias.o gfx_console.o font-5x8.o font-6x10.o gfx_res_options.o alpha_mvi_crossblit_32.o alpha_mvi_crossblit_32_P.o drivers/libscidrivers.a resource/libsciresources.a ranlib libscigraphics.a Making all in sound clang -DHAVE_CONFIG_H -I. -I. -I../.. -I../../src/include -DPNG_NO_ASSEMBLER_CODE -I/opt/pkg/include/SDL -I/opt/pkg/include -I/opt/pkg/include/ncurses -I/opt/pkg/include/freetype2 -no-cpp-precomp -pipe -Os -I/opt/pkg/include/SDL -I/opt/pkg/include -I/opt/pkg/include/ncurses -I/opt/pkg/include/freetype2 -I/opt/pkg/include/SDL -D_GNU_SOURCE=1 -D_THREAD_SAFE -no-cpp-precomp -pipe -Os -I/opt/pkg/include/SDL -I/opt/pkg/include -I/opt/pkg/include/ncurses -I/opt/pkg/include/freetype2 -c song_iterator.c song_iterator.c:374:17: warning: incompatible function pointer types assigning to 'byte *(*)(struct _song_iterator *, unsigned int *, unsigned int *)' (aka 'unsigned char *(*)(struct _song_iterator *, unsigned int *, unsigned int *)') from 'byte *(song_iterator_t *, int *, int *)' (aka 'unsigned char *(struct _song_iterator *, int *, int *)') [-Wincompatible-function-pointer-types] it->check_pcm = _sci0_check_pcm; ^ ~~~~~~~~~~~~~~~ 1 warning generated. clang -DHAVE_CONFIG_H -I. -I. -I../.. -I../../src/include -DPNG_NO_ASSEMBLER_CODE -I/opt/pkg/include/SDL -I/opt/pkg/include -I/opt/pkg/include/ncurses -I/opt/pkg/include/freetype2 -no-cpp-precomp -pipe -Os -I/opt/pkg/include/SDL -I/opt/pkg/include -I/opt/pkg/include/ncurses -I/opt/pkg/include/freetype2 -I/opt/pkg/include/SDL -D_GNU_SOURCE=1 -D_THREAD_SAFE -no-cpp-precomp -pipe -Os -I/opt/pkg/include/SDL -I/opt/pkg/include -I/opt/pkg/include/ncurses -I/opt/pkg/include/freetype2 -c oldmidi.c clang -DHAVE_CONFIG_H -I. -I. -I../.. -I../../src/include -DPNG_NO_ASSEMBLER_CODE -I/opt/pkg/include/SDL -I/opt/pkg/include -I/opt/pkg/include/ncurses -I/opt/pkg/include/freetype2 -no-cpp-precomp -pipe -Os -I/opt/pkg/include/SDL -I/opt/pkg/include -I/opt/pkg/include/ncurses -I/opt/pkg/include/freetype2 -I/opt/pkg/include/SDL -D_GNU_SOURCE=1 -D_THREAD_SAFE -no-cpp-precomp -pipe -Os -I/opt/pkg/include/SDL -I/opt/pkg/include -I/opt/pkg/include/ncurses -I/opt/pkg/include/freetype2 -c sound.c clang -DHAVE_CONFIG_H -I. -I. -I../.. -I../../src/include -DPNG_NO_ASSEMBLER_CODE -I/opt/pkg/include/SDL -I/opt/pkg/include -I/opt/pkg/include/ncurses -I/opt/pkg/include/freetype2 -no-cpp-precomp -pipe -Os -I/opt/pkg/include/SDL -I/opt/pkg/include -I/opt/pkg/include/ncurses -I/opt/pkg/include/freetype2 -I/opt/pkg/include/SDL -D_GNU_SOURCE=1 -D_THREAD_SAFE -no-cpp-precomp -pipe -Os -I/opt/pkg/include/SDL -I/opt/pkg/include -I/opt/pkg/include/ncurses -I/opt/pkg/include/freetype2 -c midi_mt32.c midi_mt32.c:289:30: warning: passing 'char [20]' to parameter of type 'guint8 *' (aka 'unsigned char *') converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] midi_mt32_poke(0x200000, shutdown_msg, 20); ^~~~~~~~~~~~ midi_mt32.c:33:45: note: passing argument to parameter 'data' here int midi_mt32_poke(guint32 address, guint8 *data, unsigned int n); ^ 1 warning generated. clang -DHAVE_CONFIG_H -I. -I. -I../.. -I../../src/include -DPNG_NO_ASSEMBLER_CODE -I/opt/pkg/include/SDL -I/opt/pkg/include -I/opt/pkg/include/ncurses -I/opt/pkg/include/freetype2 -no-cpp-precomp -pipe -Os -I/opt/pkg/include/SDL -I/opt/pkg/include -I/opt/pkg/include/ncurses -I/opt/pkg/include/freetype2 -I/opt/pkg/include/SDL -D_GNU_SOURCE=1 -D_THREAD_SAFE -no-cpp-precomp -pipe -Os -I/opt/pkg/include/SDL -I/opt/pkg/include -I/opt/pkg/include/ncurses -I/opt/pkg/include/freetype2 -c midiout.c clang -DHAVE_CONFIG_H -I. -I. -I../.. -I../../src/include -DPNG_NO_ASSEMBLER_CODE -I/opt/pkg/include/SDL -I/opt/pkg/include -I/opt/pkg/include/ncurses -I/opt/pkg/include/freetype2 -no-cpp-precomp -pipe -Os -I/opt/pkg/include/SDL -I/opt/pkg/include -I/opt/pkg/include/ncurses -I/opt/pkg/include/freetype2 -I/opt/pkg/include/SDL -D_GNU_SOURCE=1 -D_THREAD_SAFE -no-cpp-precomp -pipe -Os -I/opt/pkg/include/SDL -I/opt/pkg/include -I/opt/pkg/include/ncurses -I/opt/pkg/include/freetype2 -c midiout_unixraw.c clang -DHAVE_CONFIG_H -I. -I. -I../.. -I../../src/include -DPNG_NO_ASSEMBLER_CODE -I/opt/pkg/include/SDL -I/opt/pkg/include -I/opt/pkg/include/ncurses -I/opt/pkg/include/freetype2 -no-cpp-precomp -pipe -Os -I/opt/pkg/include/SDL -I/opt/pkg/include -I/opt/pkg/include/ncurses -I/opt/pkg/include/freetype2 -I/opt/pkg/include/SDL -D_GNU_SOURCE=1 -D_THREAD_SAFE -no-cpp-precomp -pipe -Os -I/opt/pkg/include/SDL -I/opt/pkg/include -I/opt/pkg/include/ncurses -I/opt/pkg/include/freetype2 -c midiout_alsaraw.c clang -DHAVE_CONFIG_H -I. -I. -I../.. -I../../src/include -DPNG_NO_ASSEMBLER_CODE -I/opt/pkg/include/SDL -I/opt/pkg/include -I/opt/pkg/include/ncurses -I/opt/pkg/include/freetype2 -no-cpp-precomp -pipe -Os -I/opt/pkg/include/SDL -I/opt/pkg/include -I/opt/pkg/include/ncurses -I/opt/pkg/include/freetype2 -I/opt/pkg/include/SDL -D_GNU_SOURCE=1 -D_THREAD_SAFE -no-cpp-precomp -pipe -Os -I/opt/pkg/include/SDL -I/opt/pkg/include -I/opt/pkg/include/ncurses -I/opt/pkg/include/freetype2 -c midi_device.c midi_device.c:157:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] _midi_device_null_open(guint8 *_0, unsigned int _1) { return 0; } ^ midi_device.c:158:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] _midi_device_null_close() { return 0; } ^ midi_device.c:159:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] _midi_device_null_event(guint8 _0, guint8 _1, guint8 _2, guint32 _3) { return 0; } ^ midi_device.c:160:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] _midi_device_null_event2(guint8 _0, guint8 _1, guint32 _2) { return 0; } ^ midi_device.c:161:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] _midi_device_null_allstop() { return 0; } ^ midi_device.c:162:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] _midi_device_null_reverb(short _) { return 0; } ^ 6 warnings generated. clang -DHAVE_CONFIG_H -I. -I. -I../.. -I../../src/include -DPNG_NO_ASSEMBLER_CODE -I/opt/pkg/include/SDL -I/opt/pkg/include -I/opt/pkg/include/ncurses -I/opt/pkg/include/freetype2 -no-cpp-precomp -pipe -Os -I/opt/pkg/include/SDL -I/opt/pkg/include -I/opt/pkg/include/ncurses -I/opt/pkg/include/freetype2 -I/opt/pkg/include/SDL -D_GNU_SOURCE=1 -D_THREAD_SAFE -no-cpp-precomp -pipe -Os -I/opt/pkg/include/SDL -I/opt/pkg/include -I/opt/pkg/include/ncurses -I/opt/pkg/include/freetype2 -c midi_mt32gm.c clang -DHAVE_CONFIG_H -I. -I. -I../.. -I../../src/include -DPNG_NO_ASSEMBLER_CODE -I/opt/pkg/include/SDL -I/opt/pkg/include -I/opt/pkg/include/ncurses -I/opt/pkg/include/freetype2 -no-cpp-precomp -pipe -Os -I/opt/pkg/include/SDL -I/opt/pkg/include -I/opt/pkg/include/ncurses -I/opt/pkg/include/freetype2 -I/opt/pkg/include/SDL -D_GNU_SOURCE=1 -D_THREAD_SAFE -no-cpp-precomp -pipe -Os -I/opt/pkg/include/SDL -I/opt/pkg/include -I/opt/pkg/include/ncurses -I/opt/pkg/include/freetype2 -c midiout_ossseq.c clang -DHAVE_CONFIG_H -I. -I. -I../.. -I../../src/include -DPNG_NO_ASSEMBLER_CODE -I/opt/pkg/include/SDL -I/opt/pkg/include -I/opt/pkg/include/ncurses -I/opt/pkg/include/freetype2 -no-cpp-precomp -pipe -Os -I/opt/pkg/include/SDL -I/opt/pkg/include -I/opt/pkg/include/ncurses -I/opt/pkg/include/freetype2 -I/opt/pkg/include/SDL -D_GNU_SOURCE=1 -D_THREAD_SAFE -no-cpp-precomp -pipe -Os -I/opt/pkg/include/SDL -I/opt/pkg/include -I/opt/pkg/include/ncurses -I/opt/pkg/include/freetype2 -c midiout_ossopl3.c clang -DHAVE_CONFIG_H -I. -I. -I../.. -I../../src/include -DPNG_NO_ASSEMBLER_CODE -I/opt/pkg/include/SDL -I/opt/pkg/include -I/opt/pkg/include/ncurses -I/opt/pkg/include/freetype2 -no-cpp-precomp -pipe -Os -I/opt/pkg/include/SDL -I/opt/pkg/include -I/opt/pkg/include/ncurses -I/opt/pkg/include/freetype2 -I/opt/pkg/include/SDL -D_GNU_SOURCE=1 -D_THREAD_SAFE -no-cpp-precomp -pipe -Os -I/opt/pkg/include/SDL -I/opt/pkg/include -I/opt/pkg/include/ncurses -I/opt/pkg/include/freetype2 -c thread_ss_sdl.c thread_ss_sdl.c:348:89: warning: format specifies type 'unsigned int' but the argument has type 'long' [-Wformat] fprintf(debug_stream, "Attempted to init a non-existant sound resource! %04x\n", value); ~~~~ ^~~~~ %04lx 1 warning generated. clang -DHAVE_CONFIG_H -I. -I. -I../.. -I../../src/include -DPNG_NO_ASSEMBLER_CODE -I/opt/pkg/include/SDL -I/opt/pkg/include -I/opt/pkg/include/ncurses -I/opt/pkg/include/freetype2 -no-cpp-precomp -pipe -Os -I/opt/pkg/include/SDL -I/opt/pkg/include -I/opt/pkg/include/ncurses -I/opt/pkg/include/freetype2 -I/opt/pkg/include/SDL -D_GNU_SOURCE=1 -D_THREAD_SAFE -no-cpp-precomp -pipe -Os -I/opt/pkg/include/SDL -I/opt/pkg/include -I/opt/pkg/include/ncurses -I/opt/pkg/include/freetype2 -c soundserver.c clang -DHAVE_CONFIG_H -I. -I. -I../.. -I../../src/include -DPNG_NO_ASSEMBLER_CODE -I/opt/pkg/include/SDL -I/opt/pkg/include -I/opt/pkg/include/ncurses -I/opt/pkg/include/freetype2 -no-cpp-precomp -pipe -Os -I/opt/pkg/include/SDL -I/opt/pkg/include -I/opt/pkg/include/ncurses -I/opt/pkg/include/freetype2 -I/opt/pkg/include/SDL -D_GNU_SOURCE=1 -D_THREAD_SAFE -no-cpp-precomp -pipe -Os -I/opt/pkg/include/SDL -I/opt/pkg/include -I/opt/pkg/include/ncurses -I/opt/pkg/include/freetype2 -c midi_adlib.c clang -DHAVE_CONFIG_H -I. -I. -I../.. -I../../src/include -DPNG_NO_ASSEMBLER_CODE -I/opt/pkg/include/SDL -I/opt/pkg/include -I/opt/pkg/include/ncurses -I/opt/pkg/include/freetype2 -no-cpp-precomp -pipe -Os -I/opt/pkg/include/SDL -I/opt/pkg/include -I/opt/pkg/include/ncurses -I/opt/pkg/include/freetype2 -I/opt/pkg/include/SDL -D_GNU_SOURCE=1 -D_THREAD_SAFE -no-cpp-precomp -pipe -Os -I/opt/pkg/include/SDL -I/opt/pkg/include -I/opt/pkg/include/ncurses -I/opt/pkg/include/freetype2 -c midi_adlibemu.c clang -DHAVE_CONFIG_H -I. -I. -I../.. -I../../src/include -DPNG_NO_ASSEMBLER_CODE -I/opt/pkg/include/SDL -I/opt/pkg/include -I/opt/pkg/include/ncurses -I/opt/pkg/include/freetype2 -no-cpp-precomp -pipe -Os -I/opt/pkg/include/SDL -I/opt/pkg/include -I/opt/pkg/include/ncurses -I/opt/pkg/include/freetype2 -I/opt/pkg/include/SDL -D_GNU_SOURCE=1 -D_THREAD_SAFE -no-cpp-precomp -pipe -Os -I/opt/pkg/include/SDL -I/opt/pkg/include -I/opt/pkg/include/ncurses -I/opt/pkg/include/freetype2 -c fmopl.c fmopl.c:991:37: warning: shifting a negative signed value is undefined [-Wshift-negative-value] data = Limit(outd[0], OPL_MAXOUT, OPL_MINOUT); ^~~~~~~~~~ fmopl.c:64:28: note: expanded from macro 'OPL_MINOUT' #define OPL_MINOUT (-0x8000< or explicitly provide a declaration for 'isspace' sfx_save.cfsml:501:26: warning: passing 'unsigned int *' to parameter of type 'int *' converts between pointers to integer types with different sign [-Wpointer-sign] _cfsml_write_int(fh, &(save_struc->master_volume)); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ sfx_save.cfsml:445:33: note: passing argument to parameter 'save_struc' here _cfsml_write_int(FILE *fh, int* save_struc) ^ sfx_save.cfsml:749:34: warning: passing 'unsigned int *' to parameter of type 'int *' converts between pointers to integer types with different sign [-Wpointer-sign] if (_cfsml_read_int(fh, &(save_struc->master_volume), value, line, hiteof)) { ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ sfx_save.cfsml:539:32: note: passing argument to parameter 'save_struc' here _cfsml_read_int(FILE *fh, int* save_struc, char *lastval, int *line, int *hiteof) ^ sfx_save.cfsml:498:26: warning: passing 'unsigned int *' to parameter of type 'int *' converts between pointers to integer types with different sign [-Wpointer-sign] _cfsml_write_int(fh, &(save_struc->size)); ^~~~~~~~~~~~~~~~~~~ sfx_save.cfsml:445:33: note: passing argument to parameter 'save_struc' here _cfsml_write_int(FILE *fh, int* save_struc) ^ sfx_save.cfsml:531:26: warning: passing 'unsigned int *' to parameter of type 'int *' converts between pointers to integer types with different sign [-Wpointer-sign] _cfsml_write_int(fh, &(save_struc->handle)); ^~~~~~~~~~~~~~~~~~~~~ sfx_save.cfsml:445:33: note: passing argument to parameter 'save_struc' here _cfsml_write_int(FILE *fh, int* save_struc) ^ sfx_save.cfsml:749:34: warning: passing 'unsigned int *' to parameter of type 'int *' converts between pointers to integer types with different sign [-Wpointer-sign] if (_cfsml_read_int(fh, &(save_struc->size), value, line, hiteof)) { ^~~~~~~~~~~~~~~~~~~ sfx_save.cfsml:539:32: note: passing argument to parameter 'save_struc' here _cfsml_read_int(FILE *fh, int* save_struc, char *lastval, int *line, int *hiteof) ^ sfx_save.cfsml:749:34: warning: passing 'unsigned int *' to parameter of type 'int *' converts between pointers to integer types with different sign [-Wpointer-sign] if (_cfsml_read_int(fh, &(save_struc->handle), value, line, hiteof)) { ^~~~~~~~~~~~~~~~~~~~~ sfx_save.cfsml:539:32: note: passing argument to parameter 'save_struc' here _cfsml_read_int(FILE *fh, int* save_struc, char *lastval, int *line, int *hiteof) ^ 7 warnings generated. rm -f libscisound.a ar cru libscisound.a song_iterator.o oldmidi.o sound.o sfx_save.o midi_mt32.o midiout.o midiout_unixraw.o midiout_alsaraw.o midi_device.o midi_mt32gm.o midiout_ossseq.o midiout_ossopl3.o thread_ss_sdl.o soundserver.o midi_adlib.o midi_adlibemu.o fmopl.o polled_ss_unix.o polled_ss_win32.o midiout_win32mci.o polled_ss.o pcmout.o pcmout_sdl.o pcmout_alsa.o midiout_irixmd.o pcmout_al.o pcmout_oss.o midiout_morphos.o midiout_fsynth.o ranlib libscisound.a Making all in tools clang -DHAVE_CONFIG_H -I. -I. -I../.. -I../../src/include -DPNG_NO_ASSEMBLER_CODE -I/opt/pkg/include/SDL -I/opt/pkg/include -I/opt/pkg/include/ncurses -I/opt/pkg/include/freetype2 -no-cpp-precomp -pipe -Os -I/opt/pkg/include/SDL -I/opt/pkg/include -I/opt/pkg/include/ncurses -I/opt/pkg/include/freetype2 -c sciunpack.c sciunpack.c:183:12: warning: data argument not used by format string [-Wformat-extra-args] nextitem); ^ sciunpack.c:293:11: warning: format string is not a string literal (potentially insecure) [-Wformat-security] printf(gcc_3_0_hates_me); ^~~~~~~~~~~~~~~~ sciunpack.c:293:11: note: treat the string as an argument to avoid this printf(gcc_3_0_hates_me); ^ "%s", 2 warnings generated. clang -DHAVE_CONFIG_H -I. -I. -I../.. -I../../src/include -DPNG_NO_ASSEMBLER_CODE -I/opt/pkg/include/SDL -I/opt/pkg/include -I/opt/pkg/include/ncurses -I/opt/pkg/include/freetype2 -no-cpp-precomp -pipe -Os -I/opt/pkg/include/SDL -I/opt/pkg/include -I/opt/pkg/include/ncurses -I/opt/pkg/include/freetype2 -c listwords.c listwords.c:65:42: warning: format specifies type 'char *' but the argument has type 'char (*)[1]' [-Wformat] printf("%s (class %03x, group %03x) ", &tracker[0]->word, ~~ ^~~~~~~~~~~~~~~~~ 1 warning generated. clang -DHAVE_CONFIG_H -I. -I. -I../.. -I../../src/include -DPNG_NO_ASSEMBLER_CODE -I/opt/pkg/include/SDL -I/opt/pkg/include -I/opt/pkg/include/ncurses -I/opt/pkg/include/freetype2 -no-cpp-precomp -pipe -Os -I/opt/pkg/include/SDL -I/opt/pkg/include -I/opt/pkg/include/ncurses -I/opt/pkg/include/freetype2 -c scriptdump.c clang -DHAVE_CONFIG_H -I. -I. -I../.. -I../../src/include -DPNG_NO_ASSEMBLER_CODE -I/opt/pkg/include/SDL -I/opt/pkg/include -I/opt/pkg/include/ncurses -I/opt/pkg/include/freetype2 -no-cpp-precomp -pipe -Os -I/opt/pkg/include/SDL -I/opt/pkg/include -I/opt/pkg/include/ncurses -I/opt/pkg/include/freetype2 -c vocabdump.c clang -DHAVE_CONFIG_H -I. -I. -I../.. -I../../src/include -DPNG_NO_ASSEMBLER_CODE -I/opt/pkg/include/SDL -I/opt/pkg/include -I/opt/pkg/include/ncurses -I/opt/pkg/include/freetype2 -no-cpp-precomp -pipe -Os -I/opt/pkg/include/SDL -I/opt/pkg/include -I/opt/pkg/include/ncurses -I/opt/pkg/include/freetype2 -c sciconsole.c clang -DHAVE_CONFIG_H -I. -I. -I../.. -I../../src/include -DPNG_NO_ASSEMBLER_CODE -I/opt/pkg/include/SDL -I/opt/pkg/include -I/opt/pkg/include/ncurses -I/opt/pkg/include/freetype2 -no-cpp-precomp -pipe -Os -I/opt/pkg/include/SDL -I/opt/pkg/include -I/opt/pkg/include/ncurses -I/opt/pkg/include/freetype2 -c scidisasm.c clang -DHAVE_CONFIG_H -I. -I. -I../.. -I../../src/include -DPNG_NO_ASSEMBLER_CODE -I/opt/pkg/include/SDL -I/opt/pkg/include -I/opt/pkg/include/ncurses -I/opt/pkg/include/freetype2 -no-cpp-precomp -pipe -Os -I/opt/pkg/include/SDL -I/opt/pkg/include -I/opt/pkg/include/ncurses -I/opt/pkg/include/freetype2 -c scipack.c scipack.c:197:1: warning: non-void function does not return a value in all control paths [-Wreturn-type] } ^ 1 warning generated. clang -no-cpp-precomp -pipe -Os -I/opt/pkg/include/SDL -I/opt/pkg/include -I/opt/pkg/include/ncurses -I/opt/pkg/include/freetype2 -L/opt/pkg/lib -o sciunpack sciunpack.o listwords.o scriptdump.o vocabdump.o ../sound/libscisound.a ../scicore/libscicore.a -L/opt/pkg/lib -lSDLmain -lSDL -Wl,-framework,Cocoa -lXrender -lfontconfig -lX11 clang -no-cpp-precomp -pipe -Os -I/opt/pkg/include/SDL -I/opt/pkg/include -I/opt/pkg/include/ncurses -I/opt/pkg/include/freetype2 -L/opt/pkg/lib -o sciconsole sciconsole.o ../sound/libscisound.a ../scicore/libscicore.a -lncurses -lreadline -lncurses -lm -L/opt/pkg/lib -lSDLmain -lSDL -Wl,-framework,Cocoa -lXrender -lfontconfig -lX11 clang -no-cpp-precomp -pipe -Os -I/opt/pkg/include/SDL -I/opt/pkg/include -I/opt/pkg/include/ncurses -I/opt/pkg/include/freetype2 -L/opt/pkg/lib -o scidisasm scidisasm.o ../scicore/libscicore.a -L/opt/pkg/lib -lSDLmain -lSDL -Wl,-framework,Cocoa -lXrender -lfontconfig -lX11 clang -no-cpp-precomp -pipe -Os -I/opt/pkg/include/SDL -I/opt/pkg/include -I/opt/pkg/include/ncurses -I/opt/pkg/include/freetype2 -L/opt/pkg/lib -o scipack scipack.o ../scicore/libscicore.a -L/opt/pkg/lib -lSDLmain -lSDL -Wl,-framework,Cocoa -lXrender -lfontconfig -lX11 Making all in win32 Making all in morphos Making all in wince Making all in menu clang -DHAVE_CONFIG_H -I. -I. -I../.. -I../../src/include -DPNG_NO_ASSEMBLER_CODE -I/opt/pkg/include/SDL -I/opt/pkg/include -I/opt/pkg/include/ncurses -I/opt/pkg/include/freetype2 -no-cpp-precomp -pipe -Os -I/opt/pkg/include/SDL -I/opt/pkg/include -I/opt/pkg/include/ncurses -I/opt/pkg/include/freetype2 -c game_select_init.c game_select_init.c:60:6: warning: logical not is only applied to the left hand side of this bitwise operator [-Wlogical-not-parentheses] if (!state->driver->capabilities & GFX_CAPABILITY_PIXMAP_GRABBING) { ^ ~ game_select_init.c:60:6: note: add parentheses after the '!' to evaluate the bitwise operator first if (!state->driver->capabilities & GFX_CAPABILITY_PIXMAP_GRABBING) { ^ ( ) game_select_init.c:60:6: note: add parentheses around left hand side expression to silence this warning if (!state->driver->capabilities & GFX_CAPABILITY_PIXMAP_GRABBING) { ^ ( ) game_select_init.c:61:7: warning: logical not is only applied to the left hand side of this bitwise operator [-Wlogical-not-parentheses] if (!state->driver->capabilities & GFX_CAPABILITY_MOUSE_POINTER) { ^ ~ game_select_init.c:61:7: note: add parentheses after the '!' to evaluate the bitwise operator first if (!state->driver->capabilities & GFX_CAPABILITY_MOUSE_POINTER) { ^ ( ) game_select_init.c:61:7: note: add parentheses around left hand side expression to silence this warning if (!state->driver->capabilities & GFX_CAPABILITY_MOUSE_POINTER) { ^ ( ) 2 warnings generated. clang -DHAVE_CONFIG_H -I. -I. -I../.. -I../../src/include -DPNG_NO_ASSEMBLER_CODE -I/opt/pkg/include/SDL -I/opt/pkg/include -I/opt/pkg/include/ncurses -I/opt/pkg/include/freetype2 -no-cpp-precomp -pipe -Os -I/opt/pkg/include/SDL -I/opt/pkg/include -I/opt/pkg/include/ncurses -I/opt/pkg/include/freetype2 -c game_select_screen.c clang -DHAVE_CONFIG_H -I. -I. -I../.. -I../../src/include -DPNG_NO_ASSEMBLER_CODE -I/opt/pkg/include/SDL -I/opt/pkg/include -I/opt/pkg/include/ncurses -I/opt/pkg/include/freetype2 -no-cpp-precomp -pipe -Os -I/opt/pkg/include/SDL -I/opt/pkg/include -I/opt/pkg/include/ncurses -I/opt/pkg/include/freetype2 -c game_select.c rm -f libscimenu.a ar cru libscimenu.a game_select_init.o game_select_screen.o game_select.o ranlib libscimenu.a clang -DHAVE_CONFIG_H -I. -I. -I.. -I../src/include -DPNG_NO_ASSEMBLER_CODE -I/opt/pkg/include/SDL -I/opt/pkg/include -I/opt/pkg/include/ncurses -I/opt/pkg/include/freetype2 -no-cpp-precomp -pipe -Os -I/opt/pkg/include/SDL -I/opt/pkg/include -I/opt/pkg/include/ncurses -I/opt/pkg/include/freetype2 -I/opt/pkg/include/SDL -D_GNU_SOURCE=1 -D_THREAD_SAFE -no-cpp-precomp -pipe -Os -I/opt/pkg/include/SDL -I/opt/pkg/include -I/opt/pkg/include/ncurses -I/opt/pkg/include/freetype2 -c main.c main.c:278:7: warning: address of array 'input' will always evaluate to 'true' [-Wpointer-bool-conversion] if (!input) { ~^~~~~ main.c:284:38: warning: if statement has empty body [-Wempty-body] if (input[strlen(input)-1] == '\n'); ^ main.c:284:38: note: put the semicolon on a separate line to silence this warning main.c:310:10: warning: format string is not a string literal (potentially insecure) [-Wformat-security] printf(gfx_get_driver_name(i)); ^~~~~~~~~~~~~~~~~~~~~~ main.c:310:10: note: treat the string as an argument to avoid this printf(gfx_get_driver_name(i)); ^ "%s", main.c:324:10: warning: format string is not a string literal (potentially insecure) [-Wformat-security] printf(pcmout_drivers[i]->name); ^~~~~~~~~~~~~~~~~~~~~~~ main.c:324:10: note: treat the string as an argument to avoid this printf(pcmout_drivers[i]->name); ^ "%s", main.c:337:10: warning: format string is not a string literal (potentially insecure) [-Wformat-security] printf(midiout_drivers[i]->name); ^~~~~~~~~~~~~~~~~~~~~~~~ main.c:337:10: note: treat the string as an argument to avoid this printf(midiout_drivers[i]->name); ^ "%s", main.c:351:10: warning: format string is not a string literal (potentially insecure) [-Wformat-security] printf(midi_devices[i]->name); ^~~~~~~~~~~~~~~~~~~~~ main.c:351:10: note: treat the string as an argument to avoid this printf(midi_devices[i]->name); ^ "%s", main.c:364:10: warning: format string is not a string literal (potentially insecure) [-Wformat-security] printf(sound_servers[i]->name); ^~~~~~~~~~~~~~~~~~~~~~ main.c:364:10: note: treat the string as an argument to avoid this printf(sound_servers[i]->name); ^ "%s", 7 warnings generated. clang -DHAVE_CONFIG_H -I. -I. -I.. -I../src/include -DPNG_NO_ASSEMBLER_CODE -I/opt/pkg/include/SDL -I/opt/pkg/include -I/opt/pkg/include/ncurses -I/opt/pkg/include/freetype2 -no-cpp-precomp -pipe -Os -I/opt/pkg/include/SDL -I/opt/pkg/include -I/opt/pkg/include/ncurses -I/opt/pkg/include/freetype2 -I/opt/pkg/include/SDL -D_GNU_SOURCE=1 -D_THREAD_SAFE -no-cpp-precomp -pipe -Os -I/opt/pkg/include/SDL -I/opt/pkg/include -I/opt/pkg/include/ncurses -I/opt/pkg/include/freetype2 -c config.c clang -no-cpp-precomp -pipe -Os -I/opt/pkg/include/SDL -I/opt/pkg/include -I/opt/pkg/include/ncurses -I/opt/pkg/include/freetype2 -I/opt/pkg/include/SDL -D_GNU_SOURCE=1 -D_THREAD_SAFE -no-cpp-precomp -pipe -Os -I/opt/pkg/include/SDL -I/opt/pkg/include -I/opt/pkg/include/ncurses -I/opt/pkg/include/freetype2 -L/opt/pkg/lib -o freesci config.o main.o engine/libsciengine.a gfx/libscigraphics.a gfx/resource/libsciresources.a gfx/drivers/libscidrivers.a sound/libscisound.a scicore/libscicore.a menu/libscimenu.a -lreadline -lncurses -lm -L/opt/pkg/lib -lSDLmain -lSDL -Wl,-framework,Cocoa -L/opt/pkg/lib -lSDLmain -lSDL -Wl,-framework,Cocoa -lXrender -lfontconfig -lX11 Making all in conf Making all in debian Making all in custom