mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-25 17:51:01 +00:00
avoid a few compiler warnings
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@35867 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
c486332ccf
commit
0fd06dc66f
4 changed files with 11 additions and 11 deletions
|
@ -1,3 +1,10 @@
|
||||||
|
2012-12-08 Richard Frith-Macdonald <rfm@gnu.org>
|
||||||
|
|
||||||
|
* Source/GSTLS.m:
|
||||||
|
* Source/NSNotificationCenter.m:
|
||||||
|
* Source/NSPropertyList.m:
|
||||||
|
Tweaks to avoid compiler warnings spotted by Fred.
|
||||||
|
|
||||||
2012-12-06 Richard Frith-Macdonald <rfm@gnu.org>
|
2012-12-06 Richard Frith-Macdonald <rfm@gnu.org>
|
||||||
|
|
||||||
* Source/NSHTTPCookieStorage.m: Don't read store if it doesn't exist.
|
* Source/NSHTTPCookieStorage.m: Don't read store if it doesn't exist.
|
||||||
|
|
|
@ -1533,8 +1533,8 @@ static NSMutableDictionary *credentialsCache = nil;
|
||||||
case GNUTLS_CRD_CERTIFICATE: /* certificate authentication */
|
case GNUTLS_CRD_CERTIFICATE: /* certificate authentication */
|
||||||
{
|
{
|
||||||
unsigned int cert_list_size = 0;
|
unsigned int cert_list_size = 0;
|
||||||
const gnutls_datum *cert_list;
|
const gnutls_datum_t *cert_list;
|
||||||
gnutls_x509_crt cert;
|
gnutls_x509_crt_t cert;
|
||||||
|
|
||||||
/* Check if we have been using ephemeral Diffie-Hellman.
|
/* Check if we have been using ephemeral Diffie-Hellman.
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -32,6 +32,7 @@
|
||||||
#import "common.h"
|
#import "common.h"
|
||||||
#define EXPOSE_NSNotificationCenter_IVARS 1
|
#define EXPOSE_NSNotificationCenter_IVARS 1
|
||||||
#import "Foundation/NSNotification.h"
|
#import "Foundation/NSNotification.h"
|
||||||
|
#import "Foundation/NSDictionary.h"
|
||||||
#import "Foundation/NSException.h"
|
#import "Foundation/NSException.h"
|
||||||
#import "Foundation/NSLock.h"
|
#import "Foundation/NSLock.h"
|
||||||
#import "Foundation/NSThread.h"
|
#import "Foundation/NSThread.h"
|
||||||
|
|
|
@ -2303,18 +2303,10 @@ OAppend(id obj, NSDictionary *loc, unsigned lev, unsigned step,
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
NSString *cls;
|
if (nil == obj)
|
||||||
|
|
||||||
if (obj == nil)
|
|
||||||
{
|
{
|
||||||
obj = @"(nil)";
|
obj = @"(nil)";
|
||||||
cls = @"(nil)";
|
|
||||||
}
|
}
|
||||||
else
|
|
||||||
{
|
|
||||||
cls = NSStringFromClass([obj class]);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (x == NSPropertyListXMLFormat_v1_0)
|
if (x == NSPropertyListXMLFormat_v1_0)
|
||||||
{
|
{
|
||||||
[dest appendBytes: "<string>" length: 8];
|
[dest appendBytes: "<string>" length: 8];
|
||||||
|
|
Loading…
Reference in a new issue