Commit 28c57785 by Michael Meissner

Fix aix 4.1 compiler warnings.

From-SVN: r10021
parent 1f4b5333
......@@ -1995,22 +1995,25 @@ toc_section () \
/* Remove any trailing [DS] or the like from the symbol name. */
#define STRIP_NAME_ENCODING(VAR,NAME) \
do \
{ \
if ((NAME)[0] == '*') \
(VAR) = (NAME)+1; \
else if ((NAME)[strlen (NAME) - 1] != ']') \
(VAR) = (NAME); \
else \
{ \
int _len = strlen (NAME); \
(VAR) = alloca (_len + 1); \
\
strcpy ((VAR), NAME); \
(VAR)[_len - 4] = '\0'; \
} \
} \
#define STRIP_NAME_ENCODING(VAR,NAME) \
do \
{ \
char *_name = (NAME); \
if (_name[0] == '*') \
(VAR) = _name+1; \
else \
{ \
int _len = strlen (_name); \
if (_name[_len - 1] != ']') \
(VAR) = _name; \
else \
{ \
(VAR) = (char *) alloca (_len + 1); \
strcpy ((VAR), _name); \
(VAR)[_len - 4] = '\0'; \
} \
} \
} \
while (0)
/* 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