From 2efc367f256dbe4b503c22df0a590a841e2b39dd Mon Sep 17 00:00:00 2001 From: Nathan Sidwell Date: Thu, 25 May 2017 00:33:48 +0000 Subject: * libiberty.h (ASTRDUP): Adjust cast to avoid warning. From-SVN: r248442 --- include/ChangeLog | 4 ++++ include/libiberty.h | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) (limited to 'include') diff --git a/include/ChangeLog b/include/ChangeLog index 5290381..47318da 100644 --- a/include/ChangeLog +++ b/include/ChangeLog @@ -1,3 +1,7 @@ +2017-05-24 Nathan Sidwell + + * libiberty.h (ASTRDUP): Adjust cast to avoid warning. + 2017-05-19 Eli Zaretskii * environ.h: Add #ifndef guard. diff --git a/include/libiberty.h b/include/libiberty.h index 7a79612..a0cbbcf 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) -- cgit v1.1