aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ChangeLog5
-rw-r--r--regex_internal.h8
2 files changed, 13 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 63322746..da067310 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+Fri May 20 11:00:17 2011 Arnold D. Robbins <arnold@skeeve.com>
+
+ * regex_internal.h (__attribute_warn_unused_result__): Always
+ ifdef out. Bleah.
+
Thu May 19 17:13:18 2011 Arnold D. Robbins <arnold@skeeve.com>
* Release 3.1.83: Second beta test tar ball for 4.0.
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