aboutsummaryrefslogtreecommitdiffstats
path: root/liberror.h
diff options
context:
space:
mode:
Diffstat (limited to 'liberror.h')
-rw-r--r--liberror.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/liberror.h b/liberror.h
index d692c7b..9f93fe9 100644
--- a/liberror.h
+++ b/liberror.h
@@ -251,6 +251,9 @@ struct liberror_state {
*
* @return The current error, `NULL` if none
*/
+#if defined(__GNUC__)
+__attribute__((__pure__))
+#endif
struct liberror_error *liberror_get_error(void);
/**