benedictpaten/cactus — Issue #2: compile error
Author: thirtyeggs
Created: 2011-10-13 02:08:27+00:00
State: open

Hi Benedict,

This is an error I got in the compilation process.

```
cd api && make all
make[1]: Entering directory `/nfs/yunheo1/software/assemblathon1/cactus/api'
cp inc/cactus*.h ../lib//
gcc -std=c99 -O3 -g -Wall -Werror --pedantic -funroll-loops -lm -I ..//../sonLib/lib -I/nfs/yunheo1/software/assemblathon1/local/include -DH
AVE_TOKYO_CABINET=1 -I/nfs/yunheo1/software/assemblathon1/local/include -DHAVE_KYOTO_TYCOON=1 -I/usr/include/mysql -DHAVE_MYSQL=1 -I inc -I
../lib// -c impl/cactus*.c
impl/cactusChain.c: In function â€˜chain_getAverageInstanceBaseLengthâ€™:
impl/cactusChain.c:98:19: error: variable â€˜lâ€™ set but not used [-Werror=unused-but-set-variable]
cc1: all warnings being treated as errors

impl/cactusDisk.c: In function â€˜cactusDisk_getBlockOfUniqueIDsâ€™:
impl/cactusDisk.c:554:13: error: assuming signed overflow does not occur when assuming that (X + c) < X is always false [-Werror=strict-overf
low]
cc1: all warnings being treated as errors

make[1]: *** [../lib//cactusLib.a] Error 1
make[1]: Leaving directory `/nfs/yunheo1/software/assemblathon1/cactus/api'
make: *** [all.api] Error 2
```

Could you check why it happened?
Thank you.

Yun