diff --git a/src/objective-c/GRPCClient/private/GRPCSecureChannel.m b/src/objective-c/GRPCClient/private/GRPCSecureChannel.m index c783462dd30..eb3cfc40eb0 100644 --- a/src/objective-c/GRPCClient/private/GRPCSecureChannel.m +++ b/src/objective-c/GRPCClient/private/GRPCSecureChannel.m @@ -33,7 +33,7 @@ #import "GRPCSecureChannel.h" -grpc_credentials *CertificatesAtPath(NSString *path) { +static grpc_credentials *CertificatesAtPath(NSString *path) { NSData *certsData = [NSData dataWithContentsOfFile:path]; NSCAssert(certsData.length, @"No data read from %@", path); NSString *certsString = [[NSString alloc] initWithData:certsData encoding:NSUTF8StringEncoding];