diff options
author | Nathan Sidwell <nathan@acm.org> | 2017-05-25 00:33:48 +0000 |
---|---|---|
committer | Nathan Sidwell <nathan@gcc.gnu.org> | 2017-05-25 00:33:48 +0000 |
commit | 2efc367f256dbe4b503c22df0a590a841e2b39dd (patch) | |
tree | 99de44def0f52c5545bba3a5149adbf31bc790cc /include/libiberty.h | |
parent | d0a2c9a28b95db914c78bcea3eb827b4c9e71fce (diff) |
* libiberty.h (ASTRDUP): Adjust cast to avoid warning.
From-SVN: r248442
Diffstat (limited to 'include/libiberty.h')
-rw-r--r-- | include/libiberty.h | 2 |
1 files changed, 1 insertions, 1 deletions
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) |