Add the WARN_UNUSED_RESULT attribute to all hash functions.
authorJohn Darrington <john@darrington.wattle.id.au>
Tue, 21 May 2019 12:30:46 +0000 (14:30 +0200)
committerJohn Darrington <john@darrington.wattle.id.au>
Tue, 21 May 2019 12:30:46 +0000 (14:30 +0200)
commitc8765cd7639e64d5dcd8f494aee23babb3b3f179
tree5cd4c35c15ac5439f4a172d4cbebbe63dea80f49
parentf5fe81006bfabfce76046a0d517f49d86aeb02c3
Add the WARN_UNUSED_RESULT attribute to all hash functions.

A hash function has no purpose if the result is unused, and
tests will typically not pick up a mistake where the
programmer forgets to assign the result - the hash table will
merely degenerate to a linear searched array.
src/data/value-labels.h
src/data/value.h
src/libpspp/hash-functions.h
src/libpspp/i18n.h
src/libpspp/sparse-xarray.h
src/math/interaction.h