Add the WARN_UNUSED_RESULT attribute to all hash functions.
[pspp] / src / libpspp / sparse-xarray.h
index 15ba49f60c8dc9d555c4f5f477d2ad803f83bc3a..3b3de958b96e1f4d2732241c6fcbec119dc32aa9 100644 (file)
@@ -41,6 +41,7 @@
 #ifndef LIBPSPP_SPARSE_XARRAY_H
 #define LIBPSPP_SPARSE_XARRAY_H 1
 
+#include "libpspp/compiler.h"
 #include <stddef.h>
 #include <stdbool.h>
 
@@ -67,6 +68,6 @@ bool sparse_xarray_copy (const struct sparse_xarray *src,
 
 /* For testing purposes only. */
 unsigned int sparse_xarray_model_checker_hash (const struct sparse_xarray *,
-                                               unsigned int basis);
+                                               unsigned int basis) WARN_UNUSED_RESULT;
 
 #endif /* libpspp/sparse-libpspp.h */