Build Warning - variably modified ‘comp_buf’ at file scope
We're getting this compile error from a more recent gcc version.
/home/harms/local/bin/mpicc -I . -I ../repo/trunk -g -O2 -I/usr/include -D_LARGEFILE64_SOURCE -shared -fpic -DPIC -DDARSHAN_PRELOAD -c ../repo/trunk/lib/darshan-mpi-io.c -o lib/darshan-mpi-io.po In file included from ../repo/trunk/lib/darshan-mpi-io.c:28:0: ../repo/trunk/darshan.h:100:19: warning: variably modified ‘comp_buf’ at file scope
Here's a reference about the problem: http://stackoverflow.com/questions/4789686/variably-modified-array-at-file-scope
This occurs because CP_COMPRESSION_ALLOWANCE is a float. I think if we move to integer division, this warning should go away.