Fix dead initialisations

This commit is contained in:
rfm 2024-06-21 12:23:52 +01:00
parent da181e9ab0
commit ea1f5a0d12
5 changed files with 5 additions and 5 deletions

View file

@ -536,7 +536,7 @@ parseArgumentPart(NSString *part, NSString *name)
* configuration first and then append/update the request.allHTTPHeaders
* so that request.allHTTPHeaders can override httpAdditionalHeaders.
*/
NSMutableDictionary *hh = [NSMutableDictionary dictionary];
NSMutableDictionary *hh;
NSDictionary *HTTPAdditionalHeaders;
NSDictionary *HTTPHeaders;

View file

@ -758,7 +758,7 @@ static NSMutableDictionary *certificateListCache = nil;
if (count > 0)
{
time_t now = (time_t)[[NSDate date] timeIntervalSince1970];
unsigned int i = count;
unsigned int i;
l->crts = malloc(sizeof(gnutls_x509_crt_t) * count);
memcpy(l->crts, crts, sizeof(gnutls_x509_crt_t) * count);

View file

@ -2513,7 +2513,7 @@ static NSLock *cached_proxies_gate = nil;
unsigned in_parameters = 0;
unsigned out_parameters = 0;
NSMethodSignature *sig;
const char *encoded_types = forward_type;
const char *encoded_types;
NSParameterAssert (IisValid);
if ([IrunLoops indexOfObjectIdenticalTo: runLoop] == NSNotFound)

View file

@ -429,7 +429,7 @@ combined with the set of ignored words in the current document.
wordCount: (int32_t *)wordCount
countOnly: (BOOL)countOnly
{
NSRange r = NSMakeRange(0,0);
NSRange r;
// Forward to delegate
NS_DURING
@ -444,6 +444,7 @@ combined with the set of ignored words in the current document.
}
NS_HANDLER
{
r = NSMakeRange(0,0);
NSLog(@"Call to delegate caused the following exception: %@",
[localException reason]);
}

View file

@ -118,7 +118,6 @@ concreteType(NSString *t)
unsigned pos = r.location;
BOOL found = NO;
len = [m length];
while (pos < len)
{
unichar c = [m characterAtIndex: pos++];