Skip to content

OSX Bad Address #7

Description

@stefanow

On Mac OSX 10.9 64bit, boxes delevopment version almost always crashes (except when called as boxes -v or boxes -h) with the error message: boxes: Bad address. If compiled with -DDEBUG and called as echo 1 | ./boxes, it crashes with

BOXES STARTING ...
Processing Command Line ...
Command line option settings (excerpt):
- Padding: l:-1 t:-1 r:-1 b:-1
- Requested box size: 0x0
- Tabstop distance: 8
- Tab handling: 'e'
- Alignment: horiz ?, vert ?
- Indentmode: '?'
- Line justification: '?'
- Kill blank lines: -1
- Remove box: 0
- Mend box: 0
- Design Definition W shape: n/a
Parsing Config File ...
boxes: Bad address

The output of make is

For compilation info see the boxes website at http://boxes.thomasjensen.com/
/Applications/Xcode.app/Contents/Developer/usr/bin/make -C src build
/Applications/Xcode.app/Contents/Developer/usr/bin/make CFLAGS_ADDTL=-O boxes
bison -o parser.c -d parser.y
gcc -ansi -I. -DDEBUG -Iregexp -Wall -W -O   -c -o parser.o parser.c
parser.y: In function ‘design_needed’:
parser.y:400:9: warning: implicit declaration of function ‘strcasecmp’ [-Wimplicit-function-declaration]
parser.y: In function ‘yyparse’:
parser.y:548:9: warning: implicit declaration of function ‘strdup’ [-Wimplicit-function-declaration]
parser.y:548:36: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
parser.y:591:42: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
parser.y:598:44: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
parser.y:605:43: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
parser.y:612:43: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
parser.y:679:16: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
parser.y:857:13: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
parser.y:859:13: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
parser.y:888:13: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
parser.y:890:13: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
parser.y:1001:37: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
parser.y:1024:25: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
parser.y:1045:13: warning: implicit declaration of function ‘strncasecmp’ [-Wimplicit-function-declaration]
flex -t lexer.l > lexer.tmp.c
echo '#include "config.h"' > lex.yy.c
cat lexer.tmp.c >> lex.yy.c
rm lexer.tmp.c
gcc -ansi -I. -DDEBUG -Iregexp -Wall -W -O   -c -o lex.yy.o lex.yy.c
lexer.l: In function ‘yylex’:
lexer.l:177:5: warning: implicit declaration of function ‘strdup’ [-Wimplicit-function-declaration]
lexer.l:177:16: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
lexer.l:201:16: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
lexer.l:258:16: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
lexer.l:374:16: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
lexer.l:399:16: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
<stdout>: In function ‘yy_scan_bytes’:
<stdout>:2250:17: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
lexer.l: At top level:
<stdout>:1846:16: warning: ‘input’ defined but not used [-Wunused-function]
gcc -ansi -I. -DDEBUG -Iregexp -Wall -W -O   -c -o boxes.o boxes.c
boxes.c: In function ‘get_config_file’:
boxes.c:428:9: warning: implicit declaration of function ‘strdup’ [-Wimplicit-function-declaration]
boxes.c:428:22: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
boxes.c:454:34: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
boxes.c:517:26: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
boxes.c: In function ‘process_commandline’:
boxes.c:583:9: warning: implicit declaration of function ‘getopt’ [-Wimplicit-function-declaration]
boxes.c:661:27: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
boxes.c:684:44: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
boxes.c:710:30: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
boxes.c:730:17: warning: implicit declaration of function ‘strncasecmp’ [-Wimplicit-function-declaration]
boxes.c: In function ‘style_sort’:
boxes.c:1113:5: warning: implicit declaration of function ‘strcasecmp’ [-Wimplicit-function-declaration]
boxes.c: In function ‘list_styles’:
boxes.c:1200:17: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘size_t’ [-Wformat]
boxes.c:1200:17: warning: format ‘%d’ expects argument of type ‘int’, but argument 4 has type ‘size_t’ [-Wformat]
boxes.c:1200:17: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘size_t’ [-Wformat]
boxes.c:1200:17: warning: format ‘%d’ expects argument of type ‘int’, but argument 4 has type ‘size_t’ [-Wformat]
boxes.c: In function ‘apply_substitutions’:
boxes.c:1452:35: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
boxes.c: In function ‘read_all_input’:
boxes.c:1558:53: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
gcc -ansi -I. -DDEBUG -Iregexp -Wall -W -O   -c -o tools.o tools.c
tools.c: In function ‘strisyes’:
tools.c:126:5: warning: implicit declaration of function ‘strncasecmp’ [-Wimplicit-function-declaration]
tools.c: In function ‘expand_tabs_into’:
tools.c:300:7: warning: implicit declaration of function ‘calloc’ [-Wimplicit-function-declaration]
tools.c:300:28: warning: incompatible implicit declaration of built-in function ‘calloc’ [enabled by default]
tools.c:321:4: warning: implicit declaration of function ‘strdup’ [-Wimplicit-function-declaration]
tools.c:321:12: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
tools.c: In function ‘tabbify_indent’:
tools.c:425:16: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
tools.c:428:5: warning: implicit declaration of function ‘malloc’ [-Wimplicit-function-declaration]
tools.c:428:23: warning: incompatible implicit declaration of built-in function ‘malloc’ [enabled by default]
gcc -ansi -I. -DDEBUG -Iregexp -Wall -W -O   -c -o shape.o shape.c
gcc -ansi -I. -DDEBUG -Iregexp -Wall -W -O   -c -o generate.o generate.c
generate.c: In function ‘horiz_precalc’:
generate.c:146:17: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘size_t’ [-Wformat]
generate.c:146:17: warning: format ‘%d’ expects argument of type ‘int’, but argument 4 has type ‘size_t’ [-Wformat]
generate.c:146:17: warning: format ‘%d’ expects argument of type ‘int’, but argument 5 has type ‘size_t’ [-Wformat]
generate.c:146:17: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘size_t’ [-Wformat]
generate.c:146:17: warning: format ‘%d’ expects argument of type ‘int’, but argument 4 has type ‘size_t’ [-Wformat]
generate.c:146:17: warning: format ‘%d’ expects argument of type ‘int’, but argument 5 has type ‘size_t’ [-Wformat]
generate.c: In function ‘horiz_generate’:
generate.c:573:17: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘size_t’ [-Wformat]
generate.c:573:17: warning: format ‘%d’ expects argument of type ‘int’, but argument 4 has type ‘size_t’ [-Wformat]
generate.c:573:17: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘size_t’ [-Wformat]
generate.c:573:17: warning: format ‘%d’ expects argument of type ‘int’, but argument 4 has type ‘size_t’ [-Wformat]
generate.c:577:17: warning: format ‘%d’ expects argument of type ‘int’, but argument 4 has type ‘size_t’ [-Wformat]
generate.c:577:17: warning: format ‘%d’ expects argument of type ‘int’, but argument 6 has type ‘size_t’ [-Wformat]
generate.c:577:17: warning: format ‘%d’ expects argument of type ‘int’, but argument 8 has type ‘size_t’ [-Wformat]
generate.c:577:17: warning: format ‘%d’ expects argument of type ‘int’, but argument 4 has type ‘size_t’ [-Wformat]
generate.c:577:17: warning: format ‘%d’ expects argument of type ‘int’, but argument 6 has type ‘size_t’ [-Wformat]
generate.c:577:17: warning: format ‘%d’ expects argument of type ‘int’, but argument 8 has type ‘size_t’ [-Wformat]
generate.c:579:17: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘size_t’ [-Wformat]
generate.c:579:17: warning: format ‘%d’ expects argument of type ‘int’, but argument 4 has type ‘size_t’ [-Wformat]
generate.c:579:17: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘size_t’ [-Wformat]
generate.c:579:17: warning: format ‘%d’ expects argument of type ‘int’, but argument 4 has type ‘size_t’ [-Wformat]
generate.c:583:17: warning: format ‘%d’ expects argument of type ‘int’, but argument 4 has type ‘size_t’ [-Wformat]
generate.c:583:17: warning: format ‘%d’ expects argument of type ‘int’, but argument 6 has type ‘size_t’ [-Wformat]
generate.c:583:17: warning: format ‘%d’ expects argument of type ‘int’, but argument 8 has type ‘size_t’ [-Wformat]
generate.c:583:17: warning: format ‘%d’ expects argument of type ‘int’, but argument 4 has type ‘size_t’ [-Wformat]
generate.c:583:17: warning: format ‘%d’ expects argument of type ‘int’, but argument 6 has type ‘size_t’ [-Wformat]
generate.c:583:17: warning: format ‘%d’ expects argument of type ‘int’, but argument 8 has type ‘size_t’ [-Wformat]
generate.c:604:21: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘size_t’ [-Wformat]
generate.c:604:21: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘size_t’ [-Wformat]
generate.c:609:21: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘size_t’ [-Wformat]
generate.c:609:21: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘size_t’ [-Wformat]
generate.c: In function ‘vert_generate’:
generate.c:649:17: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘size_t’ [-Wformat]
generate.c:649:17: warning: format ‘%d’ expects argument of type ‘int’, but argument 4 has type ‘size_t’ [-Wformat]
generate.c:649:17: warning: format ‘%d’ expects argument of type ‘int’, but argument 5 has type ‘size_t’ [-Wformat]
generate.c:649:17: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘size_t’ [-Wformat]
generate.c:649:17: warning: format ‘%d’ expects argument of type ‘int’, but argument 4 has type ‘size_t’ [-Wformat]
generate.c:649:17: warning: format ‘%d’ expects argument of type ‘int’, but argument 5 has type ‘size_t’ [-Wformat]
generate.c:653:17: warning: format ‘%d’ expects argument of type ‘int’, but argument 4 has type ‘size_t’ [-Wformat]
generate.c:653:17: warning: format ‘%d’ expects argument of type ‘int’, but argument 6 has type ‘size_t’ [-Wformat]
generate.c:653:17: warning: format ‘%d’ expects argument of type ‘int’, but argument 8 has type ‘size_t’ [-Wformat]
generate.c:653:17: warning: format ‘%d’ expects argument of type ‘int’, but argument 4 has type ‘size_t’ [-Wformat]
generate.c:653:17: warning: format ‘%d’ expects argument of type ‘int’, but argument 6 has type ‘size_t’ [-Wformat]
generate.c:653:17: warning: format ‘%d’ expects argument of type ‘int’, but argument 8 has type ‘size_t’ [-Wformat]
generate.c:655:17: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘size_t’ [-Wformat]
generate.c:655:17: warning: format ‘%d’ expects argument of type ‘int’, but argument 4 has type ‘size_t’ [-Wformat]
generate.c:655:17: warning: format ‘%d’ expects argument of type ‘int’, but argument 5 has type ‘size_t’ [-Wformat]
generate.c:655:17: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘size_t’ [-Wformat]
generate.c:655:17: warning: format ‘%d’ expects argument of type ‘int’, but argument 4 has type ‘size_t’ [-Wformat]
generate.c:655:17: warning: format ‘%d’ expects argument of type ‘int’, but argument 5 has type ‘size_t’ [-Wformat]
generate.c:659:17: warning: format ‘%d’ expects argument of type ‘int’, but argument 4 has type ‘size_t’ [-Wformat]
generate.c:659:17: warning: format ‘%d’ expects argument of type ‘int’, but argument 6 has type ‘size_t’ [-Wformat]
generate.c:659:17: warning: format ‘%d’ expects argument of type ‘int’, but argument 8 has type ‘size_t’ [-Wformat]
generate.c:659:17: warning: format ‘%d’ expects argument of type ‘int’, but argument 4 has type ‘size_t’ [-Wformat]
generate.c:659:17: warning: format ‘%d’ expects argument of type ‘int’, but argument 6 has type ‘size_t’ [-Wformat]
generate.c:659:17: warning: format ‘%d’ expects argument of type ‘int’, but argument 8 has type ‘size_t’ [-Wformat]
generate.c:679:21: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘size_t’ [-Wformat]
generate.c:679:21: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘size_t’ [-Wformat]
generate.c:684:21: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘size_t’ [-Wformat]
generate.c:684:21: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘size_t’ [-Wformat]
generate.c: In function ‘output_box’:
generate.c:922:9: warning: implicit declaration of function ‘strdup’ [-Wimplicit-function-declaration]
generate.c:922:21: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
generate.c:1005:13: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘size_t’ [-Wformat]
generate.c:1005:13: warning: format ‘%d’ expects argument of type ‘int’, but argument 4 has type ‘size_t’ [-Wformat]
generate.c:1005:13: warning: format ‘%d’ expects argument of type ‘int’, but argument 5 has type ‘size_t’ [-Wformat]
generate.c:1005:13: warning: format ‘%d’ expects argument of type ‘int’, but argument 6 has type ‘size_t’ [-Wformat]
generate.c:1005:13: warning: format ‘%d’ expects argument of type ‘int’, but argument 7 has type ‘size_t’ [-Wformat]
generate.c:1005:13: warning: format ‘%d’ expects argument of type ‘int’, but argument 8 has type ‘size_t’ [-Wformat]
generate.c:1005:13: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘size_t’ [-Wformat]
generate.c:1005:13: warning: format ‘%d’ expects argument of type ‘int’, but argument 4 has type ‘size_t’ [-Wformat]
generate.c:1005:13: warning: format ‘%d’ expects argument of type ‘int’, but argument 5 has type ‘size_t’ [-Wformat]
generate.c:1005:13: warning: format ‘%d’ expects argument of type ‘int’, but argument 6 has type ‘size_t’ [-Wformat]
generate.c:1005:13: warning: format ‘%d’ expects argument of type ‘int’, but argument 7 has type ‘size_t’ [-Wformat]
generate.c:1005:13: warning: format ‘%d’ expects argument of type ‘int’, but argument 8 has type ‘size_t’ [-Wformat]
generate.c:1025:17: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘size_t’ [-Wformat]
generate.c:1025:17: warning: format ‘%d’ expects argument of type ‘int’, but argument 4 has type ‘size_t’ [-Wformat]
generate.c:1025:17: warning: format ‘%d’ expects argument of type ‘int’, but argument 5 has type ‘size_t’ [-Wformat]
generate.c:1025:17: warning: format ‘%d’ expects argument of type ‘int’, but argument 6 has type ‘size_t’ [-Wformat]
generate.c:1025:17: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘size_t’ [-Wformat]
generate.c:1025:17: warning: format ‘%d’ expects argument of type ‘int’, but argument 4 has type ‘size_t’ [-Wformat]
generate.c:1025:17: warning: format ‘%d’ expects argument of type ‘int’, but argument 5 has type ‘size_t’ [-Wformat]
generate.c:1025:17: warning: format ‘%d’ expects argument of type ‘int’, but argument 6 has type ‘size_t’ [-Wformat]
gcc -ansi -I. -DDEBUG -Iregexp -Wall -W -O   -c -o remove.o remove.c
remove.c: In function ‘best_match’:
remove.c:116:9: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘size_t’ [-Wformat]
remove.c:116:9: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘size_t’ [-Wformat]
remove.c:117:9: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘size_t’ [-Wformat]
remove.c:117:9: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘size_t’ [-Wformat]
remove.c:137:13: warning: implicit declaration of function ‘strdup’ [-Wimplicit-function-declaration]
remove.c:137:17: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
remove.c:200:25: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘size_t’ [-Wformat]
remove.c:200:25: warning: format ‘%d’ expects argument of type ‘int’, but argument 4 has type ‘size_t’ [-Wformat]
remove.c:200:25: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘size_t’ [-Wformat]
remove.c:200:25: warning: format ‘%d’ expects argument of type ‘int’, but argument 4 has type ‘size_t’ [-Wformat]
remove.c:208:17: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
remove.c: In function ‘hmm’:
remove.c:289:17: warning: format ‘%d’ expects argument of type ‘int’, but argument 4 has type ‘size_t’ [-Wformat]
remove.c:289:17: warning: format ‘%d’ expects argument of type ‘int’, but argument 4 has type ‘size_t’ [-Wformat]
remove.c: In function ‘detect_horiz’:
remove.c:398:21: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘size_t’ [-Wformat]
remove.c:398:21: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘size_t’ [-Wformat]
remove.c:448:29: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘long int’ [-Wformat]
remove.c:448:29: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘long int’ [-Wformat]
remove.c:477:25: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘long int’ [-Wformat]
remove.c:477:25: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘long int’ [-Wformat]
remove.c: In function ‘remove_box’:
remove.c:866:21: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘size_t’ [-Wformat]
remove.c:866:21: warning: format ‘%d’ expects argument of type ‘int’, but argument 4 has type ‘size_t’ [-Wformat]
remove.c:866:21: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘size_t’ [-Wformat]
remove.c:866:21: warning: format ‘%d’ expects argument of type ‘int’, but argument 4 has type ‘size_t’ [-Wformat]
remove.c:868:9: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘size_t’ [-Wformat]
remove.c:868:9: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘size_t’ [-Wformat]
remove.c:869:9: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘size_t’ [-Wformat]
remove.c:869:9: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘size_t’ [-Wformat]
remove.c:885:13: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘size_t’ [-Wformat]
remove.c:885:13: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘size_t’ [-Wformat]
remove.c:886:13: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘size_t’ [-Wformat]
remove.c:886:13: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘size_t’ [-Wformat]
remove.c:899:21: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘size_t’ [-Wformat]
remove.c:899:21: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘size_t’ [-Wformat]
remove.c:911:13: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘size_t’ [-Wformat]
remove.c:911:13: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘size_t’ [-Wformat]
remove.c:912:13: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘size_t’ [-Wformat]
remove.c:912:13: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘size_t’ [-Wformat]
remove.c:924:13: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘size_t’ [-Wformat]
remove.c:924:13: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘size_t’ [-Wformat]
remove.c:933:17: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘size_t’ [-Wformat]
remove.c:933:17: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘size_t’ [-Wformat]
remove.c:946:21: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘size_t’ [-Wformat]
remove.c:946:21: warning: format ‘%d’ expects argument of type ‘int’, but argument 4 has type ‘long int’ [-Wformat]
remove.c:946:21: warning: format ‘%d’ expects argument of type ‘int’, but argument 6 has type ‘long int’ [-Wformat]
remove.c:946:21: warning: format ‘%d’ expects argument of type ‘int’, but argument 8 has type ‘long int’ [-Wformat]
remove.c:946:21: warning: format ‘%d’ expects argument of type ‘int’, but argument 9 has type ‘long int’ [-Wformat]
remove.c:946:21: warning: format ‘%d’ expects argument of type ‘int’, but argument 11 has type ‘long int’ [-Wformat]
remove.c:946:21: warning: format ‘%d’ expects argument of type ‘int’, but argument 13 has type ‘long int’ [-Wformat]
remove.c:946:21: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘size_t’ [-Wformat]
remove.c:946:21: warning: format ‘%d’ expects argument of type ‘int’, but argument 4 has type ‘long int’ [-Wformat]
remove.c:946:21: warning: format ‘%d’ expects argument of type ‘int’, but argument 6 has type ‘long int’ [-Wformat]
remove.c:946:21: warning: format ‘%d’ expects argument of type ‘int’, but argument 8 has type ‘long int’ [-Wformat]
remove.c:946:21: warning: format ‘%d’ expects argument of type ‘int’, but argument 9 has type ‘long int’ [-Wformat]
remove.c:946:21: warning: format ‘%d’ expects argument of type ‘int’, but argument 11 has type ‘long int’ [-Wformat]
remove.c:946:21: warning: format ‘%d’ expects argument of type ‘int’, but argument 13 has type ‘long int’ [-Wformat]
remove.c:976:25: warning: format ‘%d’ expects argument of type ‘int’, but argument 5 has type ‘size_t’ [-Wformat]
remove.c:976:25: warning: format ‘%d’ expects argument of type ‘int’, but argument 5 has type ‘size_t’ [-Wformat]
remove.c:1042:17: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘size_t’ [-Wformat]
remove.c:1042:17: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘size_t’ [-Wformat]
remove.c: In function ‘output_input’:
remove.c:1093:25: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
/Applications/Xcode.app/Contents/Developer/usr/bin/make -C regexp CC=gcc libregexp.a
gcc -O -I. -O -c regexp.c
gcc -O -I. -O -c regsub.c
ar cr libregexp.a regexp.o regsub.o
gcc -Lregexp parser.o lex.yy.o boxes.o tools.o shape.o generate.o remove.o -o boxes -lregexp
strip boxes

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions