summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornathan <nathan@138bc75d-0d04-0410-961f-82ee72b054a4>2017-05-25 00:33:48 +0000
committernathan <nathan@138bc75d-0d04-0410-961f-82ee72b054a4>2017-05-25 00:33:48 +0000
commitb16cb98e63c50a6910e521b754c73469cb956738 (patch)
tree99de44def0f52c5545bba3a5149adbf31bc790cc
parentfde1850d9d6a90505fd5943cdc551538ad3c1d32 (diff)
downloadgcc-b16cb98e63c50a6910e521b754c73469cb956738.tar.gz
* libiberty.h (ASTRDUP): Adjust cast to avoid warning.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@248442 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r--include/ChangeLog4
-rw-r--r--include/libiberty.h2
2 files changed, 5 insertions, 1 deletions
diff --git a/include/ChangeLog b/include/ChangeLog
index 52903816ac0..47318dac9f0 100644
--- a/include/ChangeLog
+++ b/include/ChangeLog
@@ -1,3 +1,7 @@
+2017-05-24 Nathan Sidwell <nathan@acm.org>
+
+ * libiberty.h (ASTRDUP): Adjust cast to avoid warning.
+
2017-05-19 Eli Zaretskii <eliz@gnu.org>
* environ.h: Add #ifndef guard.
diff --git a/include/libiberty.h b/include/libiberty.h
index 7a796124bf5..a0cbbcfa693 100644
--- a/include/libiberty.h
+++ b/include/libiberty.h
@@ -724,7 +724,7 @@ extern void *C_alloca (size_t) ATTRIBUTE_MALLOC;
# define ASTRDUP(X) \
(__extension__ ({ const char *const libiberty_optr = (X); \
const unsigned long libiberty_len = strlen (libiberty_optr) + 1; \
- char *const libiberty_nptr = (char *const) alloca (libiberty_len); \
+ char *const libiberty_nptr = (char *) alloca (libiberty_len); \
(char *) memcpy (libiberty_nptr, libiberty_optr, libiberty_len); }))
#else
# define alloca(x) C_alloca(x)