Hopefully fix compilatuion problem on alphas

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@10312 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Richard Frith-Macdonald 2001-07-07 04:45:38 +00:00
parent 7d3ac56536
commit 9524b45a2d
2 changed files with 9 additions and 1 deletions

View file

@ -3,6 +3,9 @@
* Source/NSData.m: readContentsOfFile() hack added to permit reading
of files like those in the /proc filesystem which don't support
lengths.
* Source/NSString.m: ([-initWithFormat:locale:]) use dummy local
variable to try to get compilation to work on alpha ... untested
as I don't have an alpha system.
2001-07-02 Richard Frith-Macdonald <rfm@gnu.org>

View file

@ -721,7 +721,12 @@ handle_printf_atsign (FILE *stream,
- (id) initWithFormat: (NSString*)format
locale: (NSDictionary*)locale
{
return [self initWithFormat: format locale: locale arguments: NULL];
va_list ap;
/*
* Dummy variable 'ap' is unused, but needs to be present because on
* some machines we can't just pass a null as a va_list
*/
return [self initWithFormat: format locale: locale arguments: ap];
}
- (id) initWithFormat: (NSString*)format