Hi,

The file attached fixes compile errors and warnings that appear when
building with a C89 (ISO C90) compiler.

- moved variable declarations to the start of a block
- fixed malloc.h warning on old FreeBSD
- changed to use inttypes.h if it is available and stdint.h is not.
- changed to use zero-length arrays when using old gcc that does not
support a flexible array member yet.
  http://gcc.gnu.org/onlinedocs/gcc-4.2.4/gcc/Zero-Length.html

I'm not sure whether C89 compiler is still supported by memcached or
not, but I think
it's good thing to support broader range of compilers as long as the
changes will not damage the readability much.

Any comments?

Attachment: iso_c90_compat.diff
Description: Binary data

Reply via email to