On 17 Aug 2011, at 14:22, Andreas Höschler wrote: > Hi all, > > I am cross-building on GNUstep/Solaris and MacOSX. When I build code like > > NSString *message = @"some string" > [NSException raise:NSInternalInconsistencyException format:message]; > > on MacOSX 10.6 using GNUstep make, gcc gives the following warning > > SOEditingContext.m:3574: warning: format not a string literal and no > format arguments > > Any idea how to get rid of that one?
[NSException raise:NSInternalInconsistencyException format: @"%@", message]; The warning is because it can't do a compile time check of message to see if it's a valid format string ... you need to use a string literal as the format string. _______________________________________________ Discuss-gnustep mailing list [email protected] https://lists.gnu.org/mailman/listinfo/discuss-gnustep
