adamcaudill/ccsrch — Issue #12: Build warnings on Ubuntu 11
Author: adamcaudill
Created: 2012-02-02 21:14:16+00:00
State: open

```
adam@ubuntu:~/adamcaudill-ccsrch-8e62b09$ make all
gcc -O2 -static -I./ -c ccsrch.c
ccsrch.c: In function ‘cleanup_shtuff’:
ccsrch.c:699:3: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘long int’ [-Wformat]
ccsrch.c:701:3: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘long int’ [-Wformat]
In file included from /usr/include/string.h:642:0,
from ccsrch.c:25:
In function ‘strncat’,
inlined from ‘print_result’ at ccsrch.c:98:10:
/usr/include/i386-linux-gnu/bits/string3.h:152:3: warning: call to __builtin___strncat_chk might overflow destination buffer [enabled by default]
In function ‘strncat’,
inlined from ‘print_result’ at ccsrch.c:104:12:
/usr/include/i386-linux-gnu/bits/string3.h:152:3: warning: call to __builtin___strncat_chk might overflow destination buffer [enabled by default]
In function ‘strncat’,
inlined from ‘print_result’ at ccsrch.c:122:14:
/usr/include/i386-linux-gnu/bits/string3.h:152:3: warning: call to __builtin___strncat_chk might overflow destination buffer [enabled by default]
In function ‘strncat’,
inlined from ‘print_result’ at ccsrch.c:129:14:
/usr/include/i386-linux-gnu/bits/string3.h:152:3: warning: call to __builtin___strncat_chk might overflow destination buffer [enabled by default]
In function ‘strncat’,
inlined from ‘print_result’ at ccsrch.c:149:14:
/usr/include/i386-linux-gnu/bits/string3.h:152:3: warning: call to __builtin___strncat_chk might overflow destination buffer [enabled by default]
gcc -O2 -static -I./ -s ccsrch.o -L./ -o ccsrch
```