Fix two warnings about self-assignment in libc. These normally only

trigger with clang, when you either use -save-temps, or ccache.

Reported by:	Sevan / Venture37 <venture37@gmail.com>
MFC after:	3 days
This commit is contained in:
dim 2012-06-06 21:16:26 +00:00
parent a70df32bec
commit 92080af158
2 changed files with 2 additions and 2 deletions

View File

@ -17,6 +17,6 @@
var = _u.v; \
} while (0)
#define UNUSED(x) (x) = (x)
#define UNUSED(x) (void)(x)
#endif /* _PORT_BEFORE_H_ */

View File

@ -464,7 +464,7 @@ getaddrinfo(const char *hostname, const char *servname,
}
error = get_portmatch(pai, servname);
if (error)
ERR(error);
goto bad;
*pai = ai0;
}