summaryrefslogtreecommitdiffstats
path: root/ingen
diff options
context:
space:
mode:
Diffstat (limited to 'ingen')
-rw-r--r--ingen/ingen.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/ingen/ingen.h b/ingen/ingen.h
index e4a36ade..11fd592a 100644
--- a/ingen/ingen.h
+++ b/ingen/ingen.h
@@ -34,6 +34,14 @@
# define INGEN_API
#endif
+#ifndef INGEN_WARN_UNUSED_RESULT
+# if __GNUC__ > 3 || __GNUC__ == 3 && __GNUC_MINOR__ >= 4
+# define INGEN_WARN_UNUSED_RESULT __attribute__((warn_unused_result))
+# else
+# define INGEN_WARN_UNUSED_RESULT
+# endif
+#endif
+
#define INGEN_NS "http://drobilla.net/ns/ingen#"
#define INGEN__Arc INGEN_NS "Arc"