file-handle-def.h (fh_ref): Add WARN_UNUSED_RESULT qualifier
[pspp] / src / data / file-handle-def.h
index af40c7ab3763c6582e856d81c4f6485412a98dae..2f944ed1c29803cb11e975ee9401d63b660b24cc 100644 (file)
@@ -17,6 +17,7 @@
 #ifndef FILE_HANDLE_DEF_H
 #define FILE_HANDLE_DEF_H
 
+#include "libpspp/compiler.h"
 #include <stdbool.h>
 #include <stddef.h>
 
@@ -81,7 +82,7 @@ struct file_handle *fh_create_dataset (struct dataset *);
 const struct fh_properties *fh_default_properties (void);
 
 /* Reference management. */
-struct file_handle *fh_ref (struct file_handle *);
+struct file_handle *fh_ref (struct file_handle *) WARN_UNUSED_RESULT;
 void fh_unref (struct file_handle *);
 void fh_unname (struct file_handle *);