Commit 28c57785 by Michael Meissner

Fix aix 4.1 compiler warnings.

From-SVN: r10021
parent 1f4b5333
...@@ -1998,19 +1998,22 @@ toc_section () \ ...@@ -1998,19 +1998,22 @@ toc_section () \
#define STRIP_NAME_ENCODING(VAR,NAME) \ #define STRIP_NAME_ENCODING(VAR,NAME) \
do \ do \
{ \ { \
if ((NAME)[0] == '*') \ char *_name = (NAME); \
(VAR) = (NAME)+1; \ if (_name[0] == '*') \
else if ((NAME)[strlen (NAME) - 1] != ']') \ (VAR) = _name+1; \
(VAR) = (NAME); \
else \ else \
{ \ { \
int _len = strlen (NAME); \ int _len = strlen (_name); \
(VAR) = alloca (_len + 1); \ if (_name[_len - 1] != ']') \
\ (VAR) = _name; \
strcpy ((VAR), NAME); \ else \
{ \
(VAR) = (char *) alloca (_len + 1); \
strcpy ((VAR), _name); \
(VAR)[_len - 4] = '\0'; \ (VAR)[_len - 4] = '\0'; \
} \ } \
} \ } \
} \
while (0) while (0)
/* Output something to declare an external symbol to the assembler. Most /* Output something to declare an external symbol to the assembler. Most
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment