aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2011-05-20 11:01:19 +0300
committerArnold D. Robbins <arnold@skeeve.com>2011-05-20 11:01:19 +0300
commitf3765fba6524654abd19f3be4772a4af32878a6d (patch)
treeb8c616a640c922c1c4ce44e2fde00d92f4b3c83a
parent57059e6b3b4dd8829015b70cffbd8f3b414a5f6d (diff)
downloadegawk-f3765fba6524654abd19f3be4772a4af32878a6d.tar.gz
egawk-f3765fba6524654abd19f3be4772a4af32878a6d.tar.bz2
egawk-f3765fba6524654abd19f3be4772a4af32878a6d.zip
Compilation fix in regex.
-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