Add some explicit casts-through-void* to silence warnings about casts that increase the alignment requirements of the pointee (mostly caused by using char* for arithmetic).

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32219 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
David Chisnall 2011-02-19 15:34:21 +00:00
parent de088f97a4
commit ddad542fb1
8 changed files with 25 additions and 21 deletions

View file

@ -1685,7 +1685,7 @@ NSDictionary *locale)
LABEL (form_strerror):
/* Print description of error ERRNO. */
errno = save_errno;
string = (unichar *)[[[NSError _last] localizedDescription]
string = (unichar *)(void*)[[[NSError _last] localizedDescription]
cStringUsingEncoding: NSUnicodeStringEncoding];
is_long = 1; /* This is a unicode string. */
goto LABEL (print_string);