aboutsummaryrefslogtreecommitdiffstats
path: root/regex_internal.h
diff options
context:
space:
mode:
Diffstat (limited to 'regex_internal.h')
-rw-r--r--regex_internal.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/regex_internal.h b/regex_internal.h
index 926f4feb..26b8abe0 100644
--- a/regex_internal.h
+++ b/regex_internal.h
@@ -161,6 +161,14 @@ is_blank (int c)
# define __attribute(arg) __attribute__ (arg)
#else
# define __attribute(arg)
+#endif
+
+#ifdef GAWK
+/*
+ * Instead of trying to figure out which GCC version introduced
+ * this symbol, just define it out and be done.
+ */
+# undef __attribute_warn_unused_result__
# define __attribute_warn_unused_result__
#endif