gnustep-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Loads of NSXML warnings


From: Fred Kiefer
Subject: Re: Loads of NSXML warnings
Date: Fri, 06 Apr 2012 23:19:05 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:11.0) Gecko/20120312 Thunderbird/11.0

Hi David,

great that you took the time to report this. Most of these warnings have been around sinc ethe merge of the NSXML branch and it would have helped, if you had reported them earlier. The problem here is that only people using clang and the pure non-fragile API can see these warnings. We now have at least three ways the ivars in base get handled and only on one of them these warnings were visible. Most of these are completely harmless, having a local variable named the same as an ivar is inconvenient, but no real problem, but the use of internal (or worse _internal) needs to be removed. The alloc calls on the wrong class are actually correct, but confusing and confusing code is bad code, so I will remove them as well. Over all it is better to remove all compiler warnings, even if they are nonsense, that way new ones are more visible. I will try to address all 142, please test again after the change and report back.

Fred


On 06.04.2012 14:33, David Chisnall wrote:
Hi,

When compiling the new NSXML stuff for a modern deployment target (pure 
non-fragile ABI), I get a very large number (150 or so) of warnings, mostly 
about shadowed ivars.  A lot of these look like they are real bugs.

They've been there for a few weeks, and I was hoping that while people were 
actively working on these files they'd be fixed, but this appears not to be the 
case.

I've attached the complete list of warnings generated from these files,

David

NSXMLDocument.m:128:11: warning: local declaration of 'options' hides instance 
variable [-Wshadow-ivar]
           options |= XML_PARSE_NOBLANKS;
           ^
NSXMLDocument.m:132:42: warning: local declaration of 'options' hides instance 
variable [-Wshadow-ivar]
                           url, encoding, options);
                                          ^
NSXMLDocument.m:160:28: warning: local declaration of 'kind' hides instance 
variable [-Wshadow-ivar]
   if (NSXMLDocumentKind == kind)
                            ^
NSXMLDocument.m:162:35: warning: local declaration of 'kind' hides instance 
variable [-Wshadow-ivar]
       return [super initWithKind: kind options: theOptions];
                                   ^
NSXMLDocument.m:167:47: warning: local declaration of 'kind' hides instance 
variable [-Wshadow-ivar]
       return [[NSXMLNode alloc] initWithKind: kind
                                               ^
NSXMLDocument.m:167:14: warning: incompatible pointer types casting 'NSXMLNode 
*' to type 'NSXMLDocument *' [-Wincompatible-pointer-types]
       return [[NSXMLNode alloc] initWithKind: kind
              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../Headers/Foundation/NSXMLNode.h:243:1: note: instance method 
'initWithKind:options:' is assumed to return an instance of its receiver type 
('NSXMLNode *')
- (id) initWithKind: (NSXMLNodeKind)kind options: (NSUInteger)options;
^
NSXMLDocument.m:232:27: warning: local declaration of 'kind' hides instance 
variable [-Wshadow-ivar]
   internal->contentKind = kind;
                           ^
NSXMLDocument.m:251:34: warning: local declaration of 'MIMEType' hides instance 
variable [-Wshadow-ivar]
   ASSIGNCOPY(internal->MIMEType, MIMEType);
                                  ^
../Headers/GNUstepBase/GNUstep.h:153:14: note: expanded from macro 'ASSIGNCOPY'
   object = [(value) copy];\
              ^
NSXMLDocument.m:287:7: warning: local declaration of 'node' hides instance 
variable [-Wshadow-ivar]
   if (node->URL != NULL)
       ^
NSXMLDocument.m:289:26: warning: local declaration of 'node' hides instance 
variable [-Wshadow-ivar]
       xmlFree((xmlChar *)node->URL);
                          ^
NSXMLDocument.m:291:3: warning: local declaration of 'node' hides instance 
variable [-Wshadow-ivar]
   node->URL = XMLStringCopy(URI);
   ^
NSXMLDocument.m:298:7: warning: local declaration of 'node' hides instance 
variable [-Wshadow-ivar]
   if (node->URL)
       ^
NSXMLDocument.m:300:37: warning: local declaration of 'node' hides instance 
variable [-Wshadow-ivar]
       return StringFromXMLStringPtr(node->URL);
                                     ^
NSXMLDocument.m:314:11: warning: local declaration of 'node' hides instance 
variable [-Wshadow-ivar]
       if (node->version != NULL)
           ^
NSXMLDocument.m:316:30: warning: local declaration of 'node' hides instance 
variable [-Wshadow-ivar]
           xmlFree((xmlChar *)node->version);
                              ^
NSXMLDocument.m:318:7: warning: local declaration of 'node' hides instance 
variable [-Wshadow-ivar]
       node->version = XMLStringCopy(version);
       ^
NSXMLDocument.m:331:7: warning: local declaration of 'node' hides instance 
variable [-Wshadow-ivar]
   if (node->version)
       ^
NSXMLDocument.m:332:35: warning: local declaration of 'node' hides instance 
variable [-Wshadow-ivar]
     return StringFromXMLStringPtr(node->version);
                                   ^
NSXMLDocument.m:346:3: warning: local declaration of 'kind' hides instance 
variable [-Wshadow-ivar]
   kind = [child kind];
   ^
NSXMLDocument.m:347:34: warning: local declaration of 'kind' hides instance 
variable [-Wshadow-ivar]
   NSAssert(NSXMLAttributeKind != kind, NSInvalidArgumentException);
                                  ^
../Headers/Foundation/NSException.h:464:20: note: expanded from macro 'NSAssert'
     _NSAssertArgs((condition), (desc))
                    ^
../Headers/Foundation/NSException.h:405:8: note: expanded from macro 
'_NSAssertArgs'
         if (!(condition)) {                                     \
               ^
NSXMLDocument.m:348:28: warning: local declaration of 'kind' hides instance 
variable [-Wshadow-ivar]
   NSAssert(NSXMLDTDKind != kind, NSInvalidArgumentException);
                            ^
../Headers/Foundation/NSException.h:464:20: note: expanded from macro 'NSAssert'
     _NSAssertArgs((condition), (desc))
                    ^
../Headers/Foundation/NSException.h:405:8: note: expanded from macro 
'_NSAssertArgs'
         if (!(condition)) {                                     \
               ^
NSXMLDocument.m:349:33: warning: local declaration of 'kind' hides instance 
variable [-Wshadow-ivar]
   NSAssert(NSXMLDocumentKind != kind, NSInvalidArgumentException);
                                 ^
../Headers/Foundation/NSException.h:464:20: note: expanded from macro 'NSAssert'
     _NSAssertArgs((condition), (desc))
                    ^
../Headers/Foundation/NSException.h:405:8: note: expanded from macro 
'_NSAssertArgs'
         if (!(condition)) {                                     \
               ^
NSXMLDocument.m:350:43: warning: local declaration of 'kind' hides instance 
variable [-Wshadow-ivar]
   NSAssert(NSXMLElementDeclarationKind != kind, NSInvalidArgumentException);
                                           ^
../Headers/Foundation/NSException.h:464:20: note: expanded from macro 'NSAssert'
     _NSAssertArgs((condition), (desc))
                    ^
../Headers/Foundation/NSException.h:405:8: note: expanded from macro 
'_NSAssertArgs'
         if (!(condition)) {                                     \
               ^
NSXMLDocument.m:351:42: warning: local declaration of 'kind' hides instance 
variable [-Wshadow-ivar]
   NSAssert(NSXMLEntityDeclarationKind != kind, NSInvalidArgumentException);
                                          ^
../Headers/Foundation/NSException.h:464:20: note: expanded from macro 'NSAssert'
     _NSAssertArgs((condition), (desc))
                    ^
../Headers/Foundation/NSException.h:405:8: note: expanded from macro 
'_NSAssertArgs'
         if (!(condition)) {                                     \
               ^
NSXMLDocument.m:352:32: warning: local declaration of 'kind' hides instance 
variable [-Wshadow-ivar]
   NSAssert(NSXMLInvalidKind != kind, NSInvalidArgumentException);
                                ^
../Headers/Foundation/NSException.h:464:20: note: expanded from macro 'NSAssert'
     _NSAssertArgs((condition), (desc))
                    ^
../Headers/Foundation/NSException.h:405:8: note: expanded from macro 
'_NSAssertArgs'
         if (!(condition)) {                                     \
               ^
NSXMLDocument.m:353:34: warning: local declaration of 'kind' hides instance 
variable [-Wshadow-ivar]
   NSAssert(NSXMLNamespaceKind != kind, NSInvalidArgumentException);
                                  ^
../Headers/Foundation/NSException.h:464:20: note: expanded from macro 'NSAssert'
     _NSAssertArgs((condition), (desc))
                    ^
../Headers/Foundation/NSException.h:405:8: note: expanded from macro 
'_NSAssertArgs'
         if (!(condition)) {                                     \
               ^
NSXMLDocument.m:354:44: warning: local declaration of 'kind' hides instance 
variable [-Wshadow-ivar]
   NSAssert(NSXMLNotationDeclarationKind != kind, NSInvalidArgumentException);
                                            ^
../Headers/Foundation/NSException.h:464:20: note: expanded from macro 'NSAssert'
     _NSAssertArgs((condition), (desc))
                    ^
../Headers/Foundation/NSException.h:405:8: note: expanded from macro 
'_NSAssertArgs'
         if (!(condition)) {                                     \
               ^
NSXMLDocument.m:403:22: warning: local declaration of 'node' hides instance 
variable [-Wshadow-ivar]
   [self insertChild: node atIndex: index];
                      ^
NSXMLDocument.m:414:53: warning: local declaration of 'options' hides instance 
variable [-Wshadow-ivar]
   NSString *xmlString = [self XMLStringWithOptions: options];
                                                     ^
29 warnings generated.
  Compiling file NSXMLDTD.m ...
NSXMLDTD.m:65:8: warning: local declaration of 'node' hides instance variable 
[-Wshadow-ivar]
   if ((node == NULL) ||
        ^
NSXMLDTD.m:66:8: warning: local declaration of 'node' hides instance variable 
[-Wshadow-ivar]
       (node->children == NULL))
        ^
NSXMLDTD.m:71:18: warning: local declaration of 'node' hides instance variable 
[-Wshadow-ivar]
  for (children = node->children; children; children = children->next)
                  ^
NSXMLDTD.m:94:8: warning: local declaration of 'node' hides instance variable 
[-Wshadow-ivar]
   if ((node == NULL) ||
        ^
NSXMLDTD.m:95:8: warning: local declaration of 'node' hides instance variable 
[-Wshadow-ivar]
       (node->children == NULL))
        ^
NSXMLDTD.m:100:18: warning: local declaration of 'node' hides instance variable 
[-Wshadow-ivar]
  for (children = node->children; children; children = children->next)
                  ^
NSXMLDTD.m:123:8: warning: local declaration of 'node' hides instance variable 
[-Wshadow-ivar]
   if ((node == NULL) ||
        ^
NSXMLDTD.m:124:8: warning: local declaration of 'node' hides instance variable 
[-Wshadow-ivar]
       (node->children == NULL))
        ^
NSXMLDTD.m:129:18: warning: local declaration of 'node' hides instance variable 
[-Wshadow-ivar]
  for (children = node->children; children; children = children->next)
                  ^
NSXMLDTD.m:197:23: warning: local declaration of 'kind' hides instance variable 
[-Wshadow-ivar]
   if (NSXMLDTDKind == kind)
                       ^
NSXMLDTD.m:199:35: warning: local declaration of 'kind' hides instance variable 
[-Wshadow-ivar]
       return [super initWithKind: kind options: theOptions];
                                   ^
NSXMLDTD.m:204:47: warning: local declaration of 'kind' hides instance variable 
[-Wshadow-ivar]
       return [[NSXMLNode alloc] initWithKind: kind
                                               ^
NSXMLDTD.m:204:14: warning: incompatible pointer types casting 'NSXMLNode *' to 
type 'NSXMLDTD *' [-Wincompatible-pointer-types]
       return [[NSXMLNode alloc] initWithKind: kind
              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../Headers/Foundation/NSXMLNode.h:243:1: note: instance method 
'initWithKind:options:' is assumed to return an instance of its receiver type 
('NSXMLNode *')
- (id) initWithKind: (NSXMLNodeKind)kind options: (NSUInteger)options;
^
NSXMLDTD.m:218:34: warning: local declaration of 'kind' hides instance variable 
[-Wshadow-ivar]
   NSAssert(NSXMLAttributeKind != kind, NSInvalidArgumentException);
                                  ^
../Headers/Foundation/NSException.h:464:20: note: expanded from macro 'NSAssert'
     _NSAssertArgs((condition), (desc))
                    ^
../Headers/Foundation/NSException.h:405:8: note: expanded from macro 
'_NSAssertArgs'
         if (!(condition)) {                                     \
               ^
NSXMLDTD.m:219:28: warning: local declaration of 'kind' hides instance variable 
[-Wshadow-ivar]
   NSAssert(NSXMLDTDKind != kind, NSInvalidArgumentException);
                            ^
../Headers/Foundation/NSException.h:464:20: note: expanded from macro 'NSAssert'
     _NSAssertArgs((condition), (desc))
                    ^
../Headers/Foundation/NSException.h:405:8: note: expanded from macro 
'_NSAssertArgs'
         if (!(condition)) {                                     \
               ^
NSXMLDTD.m:220:33: warning: local declaration of 'kind' hides instance variable 
[-Wshadow-ivar]
   NSAssert(NSXMLDocumentKind != kind, NSInvalidArgumentException);
                                 ^
../Headers/Foundation/NSException.h:464:20: note: expanded from macro 'NSAssert'
     _NSAssertArgs((condition), (desc))
                    ^
../Headers/Foundation/NSException.h:405:8: note: expanded from macro 
'_NSAssertArgs'
         if (!(condition)) {                                     \
               ^
NSXMLDTD.m:221:32: warning: local declaration of 'kind' hides instance variable 
[-Wshadow-ivar]
   NSAssert(NSXMLElementKind != kind, NSInvalidArgumentException);
                                ^
../Headers/Foundation/NSException.h:464:20: note: expanded from macro 'NSAssert'
     _NSAssertArgs((condition), (desc))
                    ^
../Headers/Foundation/NSException.h:405:8: note: expanded from macro 
'_NSAssertArgs'
         if (!(condition)) {                                     \
               ^
NSXMLDTD.m:222:32: warning: local declaration of 'kind' hides instance variable 
[-Wshadow-ivar]
   NSAssert(NSXMLInvalidKind != kind, NSInvalidArgumentException);
                                ^
../Headers/Foundation/NSException.h:464:20: note: expanded from macro 'NSAssert'
     _NSAssertArgs((condition), (desc))
                    ^
../Headers/Foundation/NSException.h:405:8: note: expanded from macro 
'_NSAssertArgs'
         if (!(condition)) {                                     \
               ^
NSXMLDTD.m:223:34: warning: local declaration of 'kind' hides instance variable 
[-Wshadow-ivar]
   NSAssert(NSXMLNamespaceKind != kind, NSInvalidArgumentException);
                                  ^
../Headers/Foundation/NSException.h:464:20: note: expanded from macro 'NSAssert'
     _NSAssertArgs((condition), (desc))
                    ^
../Headers/Foundation/NSException.h:405:8: note: expanded from macro 
'_NSAssertArgs'
         if (!(condition)) {                                     \
               ^
NSXMLDTD.m:224:29: warning: local declaration of 'kind' hides instance variable 
[-Wshadow-ivar]
   NSAssert(NSXMLTextKind != kind, NSInvalidArgumentException);
                             ^
../Headers/Foundation/NSException.h:464:20: note: expanded from macro 'NSAssert'
     _NSAssertArgs((condition), (desc))
                    ^
../Headers/Foundation/NSException.h:405:8: note: expanded from macro 
'_NSAssertArgs'
         if (!(condition)) {                                     \
               ^
NSXMLDTD.m:246:8: warning: local declaration of 'node' hides instance variable 
[-Wshadow-ivar]
   if ((node == NULL) ||
        ^
NSXMLDTD.m:247:8: warning: local declaration of 'node' hides instance variable 
[-Wshadow-ivar]
       (node->children == NULL))
        ^
NSXMLDTD.m:252:18: warning: local declaration of 'node' hides instance variable 
[-Wshadow-ivar]
  for (children = node->children; children; children = children->next)
                  ^
NSXMLDTD.m:270:33: warning: local declaration of 'node' hides instance variable 
[-Wshadow-ivar]
   return StringFromXMLStringPtr(node->ExternalID);
                                 ^
NSXMLDTD.m:289:22: warning: local declaration of 'node' hides instance variable 
[-Wshadow-ivar]
   [self insertChild: node atIndex: index];
                      ^
NSXMLDTD.m:309:3: warning: local declaration of 'node' hides instance variable 
[-Wshadow-ivar]
   node->ExternalID = XMLStringCopy(publicID);
   ^
NSXMLDTD.m:316:3: warning: local declaration of 'node' hides instance variable 
[-Wshadow-ivar]
   node->SystemID = XMLStringCopy(systemID);
   ^
NSXMLDTD.m:323:33: warning: local declaration of 'node' hides instance variable 
[-Wshadow-ivar]
   return StringFromXMLStringPtr(node->SystemID);
                                 ^
28 warnings generated.
  Compiling file NSXMLDTDNode.m ...
NSXMLDTDNode.m:58:37: warning: local declaration of 'kind' hides instance 
variable [-Wshadow-ivar]
   if (NSXMLEntityDeclarationKind == kind
                                     ^
NSXMLDTDNode.m:59:39: warning: local declaration of 'kind' hides instance 
variable [-Wshadow-ivar]
     || NSXMLElementDeclarationKind == kind
                                       ^
NSXMLDTDNode.m:60:40: warning: local declaration of 'kind' hides instance 
variable [-Wshadow-ivar]
     || NSXMLNotationDeclarationKind == kind)
                                        ^
NSXMLDTDNode.m:62:35: warning: local declaration of 'kind' hides instance 
variable [-Wshadow-ivar]
       return [super initWithKind: kind options: theOptions];
                                   ^
NSXMLDTDNode.m:67:47: warning: local declaration of 'kind' hides instance 
variable [-Wshadow-ivar]
       return [[NSXMLNode alloc] initWithKind: kind
                                               ^
NSXMLDTDNode.m:67:14: warning: incompatible pointer types casting 'NSXMLNode *' 
to type 'NSXMLDTDNode *' [-Wincompatible-pointer-types]
       return [[NSXMLNode alloc] initWithKind: kind
              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../Headers/Foundation/NSXMLNode.h:243:1: note: instance method 
'initWithKind:options:' is assumed to return an instance of its receiver type 
('NSXMLNode *')
- (id) initWithKind: (NSXMLNodeKind)kind options: (NSUInteger)options;
^
NSXMLDTDNode.m:82:14: warning: incompatible pointer types assigning to 
'NSXMLDTDNode *' from 'NSXMLNode *' [-Wincompatible-pointer-types]
       result = RETAIN([tempDoc childAtIndex: 0]);
              ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../Headers/Foundation/NSObject.h:173:1: note: instance method 'retain' is 
assumed to return an instance of its receiver type ('NSXMLNode *')
- (id) retain NS_AUTOMATED_REFCOUNT_UNAVAILABLE;
^
NSXMLDTDNode.m:112:23: warning: local declaration of 'kind' hides instance 
variable [-Wshadow-ivar]
   internal->DTDKind = kind;
                       ^
8 warnings generated.
  Compiling file NSXMLElement.m ...
NSXMLElement.m:75:27: warning: local declaration of 'kind' hides instance 
variable [-Wshadow-ivar]
   if (NSXMLElementKind == kind)
                           ^
NSXMLElement.m:77:35: warning: local declaration of 'kind' hides instance 
variable [-Wshadow-ivar]
       return [super initWithKind: kind options: theOptions];
                                   ^
NSXMLElement.m:82:47: warning: local declaration of 'kind' hides instance 
variable [-Wshadow-ivar]
       return [[NSXMLNode alloc] initWithKind: kind
                                               ^
NSXMLElement.m:82:14: warning: incompatible pointer types casting 'NSXMLNode *' 
to type 'NSXMLElement *' [-Wincompatible-pointer-types]
       return [[NSXMLNode alloc] initWithKind: kind
              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../Headers/Foundation/NSXMLNode.h:243:1: note: instance method 
'initWithKind:options:' is assumed to return an instance of its receiver type 
('NSXMLNode *')
- (id) initWithKind: (NSXMLNodeKind)kind options: (NSUInteger)options;
^
NSXMLElement.m:180:39: warning: local declaration of 'node' hides instance 
variable [-Wshadow-ivar]
                   [results addObject: node];
                                       ^
NSXMLElement.m:218:39: warning: local declaration of 'node' hides instance 
variable [-Wshadow-ivar]
                   [results addObject: node];
                                       ^
NSXMLElement.m:247:40: warning: local declaration of 'node' hides instance 
variable [-Wshadow-ivar]
           xmlNsPtr newNs = xmlSearchNs(node->doc, node, ns->prefix);
                                        ^
NSXMLElement.m:247:51: warning: local declaration of 'node' hides instance 
variable [-Wshadow-ivar]
           xmlNsPtr newNs = xmlSearchNs(node->doc, node, ns->prefix);
                                                   ^
NSXMLElement.m:258:46: warning: local declaration of 'node' hides instance 
variable [-Wshadow-ivar]
           xmlNsPtr newNs = xmlSearchNsByHref(node->doc, node, ns->href);
                                              ^
NSXMLElement.m:258:57: warning: local declaration of 'node' hides instance 
variable [-Wshadow-ivar]
           xmlNsPtr newNs = xmlSearchNsByHref(node->doc, node, ns->href);
                                                         ^
NSXMLElement.m:295:24: warning: local declaration of 'node' hides instance 
variable [-Wshadow-ivar]
           ensure_oldNs(node);
                        ^
NSXMLElement.m:296:20: warning: local declaration of 'node' hides instance 
variable [-Wshadow-ivar]
           oldNs1 = node->doc->oldNs;
                    ^
NSXMLElement.m:310:27: warning: local declaration of 'node' hides instance 
variable [-Wshadow-ivar]
                           node->doc, node, 0);
                           ^
NSXMLElement.m:310:38: warning: local declaration of 'node' hides instance 
variable [-Wshadow-ivar]
                           node->doc, node, 0);
                                      ^
NSXMLElement.m:316:30: warning: local declaration of 'node' hides instance 
variable [-Wshadow-ivar]
       oldAttr = xmlHasNsProp(node, attr->name, ns->href);
                              ^
NSXMLElement.m:320:28: warning: local declaration of 'node' hides instance 
variable [-Wshadow-ivar]
       oldAttr = xmlHasProp(node, attr->name);
                            ^
NSXMLElement.m:347:15: warning: local declaration of 'node' hides instance 
variable [-Wshadow-ivar]
   xmlAddChild(node, (xmlNodePtr)attr);
               ^
NSXMLElement.m:394:30: warning: local declaration of 'node' hides instance 
variable [-Wshadow-ivar]
   xmlAttrPtr attributeNode = node->properties;
                              ^
NSXMLElement.m:427:43: warning: local declaration of 'node' hides instance 
variable [-Wshadow-ivar]
     xmlAttrPtr attributeNode = xmlHasProp(node, XMLSTRING(name));
                                           ^
NSXMLElement.m:443:43: warning: local declaration of 'node' hides instance 
variable [-Wshadow-ivar]
   xmlAttrPtr attributeNode = xmlHasNsProp(node, XMLSTRING(localName),
                                           ^
NSXMLElement.m:460:7: warning: local declaration of 'node' hides instance 
variable [-Wshadow-ivar]
   if (node->nsDef == NULL)
       ^
NSXMLElement.m:462:7: warning: local declaration of 'node' hides instance 
variable [-Wshadow-ivar]
       node->nsDef = ns;
       ^
NSXMLElement.m:466:22: warning: local declaration of 'node' hides instance 
variable [-Wshadow-ivar]
       xmlNsPtr cur = node->nsDef;
                      ^
NSXMLElement.m:490:15: warning: local declaration of 'node' hides instance 
variable [-Wshadow-ivar]
           if (node->ns == cur)
               ^
NSXMLElement.m:492:15: warning: local declaration of 'node' hides instance 
variable [-Wshadow-ivar]
               node->ns = ns;
               ^
NSXMLElement.m:496:15: warning: local declaration of 'node' hides instance 
variable [-Wshadow-ivar]
               node->nsDef = ns;
               ^
NSXMLElement.m:508:8: warning: local declaration of 'node' hides instance 
variable [-Wshadow-ivar]
   if ((node->ns == NULL)&&  (xmlStrcmp(prefix, (const xmlChar*)"") == 0))
        ^
NSXMLElement.m:510:7: warning: local declaration of 'node' hides instance 
variable [-Wshadow-ivar]
       node->ns = ns;
       ^
NSXMLElement.m:514:22: warning: local declaration of 'node' hides instance 
variable [-Wshadow-ivar]
   cleanup_namespaces(node, ns);
                      ^
NSXMLElement.m:521:7: warning: local declaration of 'node' hides instance 
variable [-Wshadow-ivar]
   if (node->nsDef != NULL)
       ^
NSXMLElement.m:523:22: warning: local declaration of 'node' hides instance 
variable [-Wshadow-ivar]
       xmlNsPtr cur = node->nsDef;
                      ^
NSXMLElement.m:541:19: warning: local declaration of 'node' hides instance 
variable [-Wshadow-ivar]
               if (node->ns == cur)
                   ^
NSXMLElement.m:543:19: warning: local declaration of 'node' hides instance 
variable [-Wshadow-ivar]
                   node->ns = NULL;
                   ^
NSXMLElement.m:599:24: warning: local declaration of 'node' hides instance 
variable [-Wshadow-ivar]
       ns = xmlSearchNs(node->doc, node, prefix);
                        ^
NSXMLElement.m:599:35: warning: local declaration of 'node' hides instance 
variable [-Wshadow-ivar]
       ns = xmlSearchNs(node->doc, node, prefix);
                                   ^
NSXMLElement.m:603:28: warning: local declaration of 'node' hides instance 
variable [-Wshadow-ivar]
           ns = xmlSearchNs(node->doc, node, prefix);
                            ^
NSXMLElement.m:603:39: warning: local declaration of 'node' hides instance 
variable [-Wshadow-ivar]
           ns = xmlSearchNs(node->doc, node, prefix);
                                       ^
NSXMLElement.m:650:34: warning: local declaration of 'kind' hides instance 
variable [-Wshadow-ivar]
   NSAssert(NSXMLAttributeKind != kind, NSInvalidArgumentException);
                                  ^
../Headers/Foundation/NSException.h:464:20: note: expanded from macro 'NSAssert'
     _NSAssertArgs((condition), (desc))
                    ^
../Headers/Foundation/NSException.h:405:8: note: expanded from macro 
'_NSAssertArgs'
         if (!(condition)) {                                     \
               ^
NSXMLElement.m:651:28: warning: local declaration of 'kind' hides instance 
variable [-Wshadow-ivar]
   NSAssert(NSXMLDTDKind != kind, NSInvalidArgumentException);
                            ^
../Headers/Foundation/NSException.h:464:20: note: expanded from macro 'NSAssert'
     _NSAssertArgs((condition), (desc))
                    ^
../Headers/Foundation/NSException.h:405:8: note: expanded from macro 
'_NSAssertArgs'
         if (!(condition)) {                                     \
               ^
NSXMLElement.m:652:33: warning: local declaration of 'kind' hides instance 
variable [-Wshadow-ivar]
   NSAssert(NSXMLDocumentKind != kind, NSInvalidArgumentException);
                                 ^
../Headers/Foundation/NSException.h:464:20: note: expanded from macro 'NSAssert'
     _NSAssertArgs((condition), (desc))
                    ^
../Headers/Foundation/NSException.h:405:8: note: expanded from macro 
'_NSAssertArgs'
         if (!(condition)) {                                     \
               ^
NSXMLElement.m:653:43: warning: local declaration of 'kind' hides instance 
variable [-Wshadow-ivar]
   NSAssert(NSXMLElementDeclarationKind != kind, NSInvalidArgumentException);
                                           ^
../Headers/Foundation/NSException.h:464:20: note: expanded from macro 'NSAssert'
     _NSAssertArgs((condition), (desc))
                    ^
../Headers/Foundation/NSException.h:405:8: note: expanded from macro 
'_NSAssertArgs'
         if (!(condition)) {                                     \
               ^
NSXMLElement.m:654:42: warning: local declaration of 'kind' hides instance 
variable [-Wshadow-ivar]
   NSAssert(NSXMLEntityDeclarationKind != kind, NSInvalidArgumentException);
                                          ^
../Headers/Foundation/NSException.h:464:20: note: expanded from macro 'NSAssert'
     _NSAssertArgs((condition), (desc))
                    ^
../Headers/Foundation/NSException.h:405:8: note: expanded from macro 
'_NSAssertArgs'
         if (!(condition)) {                                     \
               ^
NSXMLElement.m:655:32: warning: local declaration of 'kind' hides instance 
variable [-Wshadow-ivar]
   NSAssert(NSXMLInvalidKind != kind, NSInvalidArgumentException);
                                ^
../Headers/Foundation/NSException.h:464:20: note: expanded from macro 'NSAssert'
     _NSAssertArgs((condition), (desc))
                    ^
../Headers/Foundation/NSException.h:405:8: note: expanded from macro 
'_NSAssertArgs'
         if (!(condition)) {                                     \
               ^
NSXMLElement.m:656:34: warning: local declaration of 'kind' hides instance 
variable [-Wshadow-ivar]
   NSAssert(NSXMLNamespaceKind != kind, NSInvalidArgumentException);
                                  ^
../Headers/Foundation/NSException.h:464:20: note: expanded from macro 'NSAssert'
     _NSAssertArgs((condition), (desc))
                    ^
../Headers/Foundation/NSException.h:405:8: note: expanded from macro 
'_NSAssertArgs'
         if (!(condition)) {                                     \
               ^
NSXMLElement.m:657:44: warning: local declaration of 'kind' hides instance 
variable [-Wshadow-ivar]
   NSAssert(NSXMLNotationDeclarationKind != kind, NSInvalidArgumentException);
                                            ^
../Headers/Foundation/NSException.h:464:20: note: expanded from macro 'NSAssert'
     _NSAssertArgs((condition), (desc))
                    ^
../Headers/Foundation/NSException.h:405:8: note: expanded from macro 
'_NSAssertArgs'
         if (!(condition)) {                                     \
               ^
NSXMLElement.m:706:22: warning: local declaration of 'node' hides instance 
variable [-Wshadow-ivar]
   [self insertChild: node atIndex: index];
                      ^
NSXMLElement.m:744:25: warning: local declaration of 'node' hides instance 
variable [-Wshadow-ivar]
       xmlNodePtr prev = node->prev;
                         ^
NSXMLElement.m:745:25: warning: local declaration of 'node' hides instance 
variable [-Wshadow-ivar]
       xmlNodePtr next = node->next;
                         ^
NSXMLElement.m:747:11: warning: local declaration of 'node' hides instance 
variable [-Wshadow-ivar]
       if (node->type == XML_ELEMENT_NODE)
           ^
NSXMLElement.m:752:16: warning: local declaration of 'node' hides instance 
variable [-Wshadow-ivar]
       else if (node->type == XML_TEXT_NODE
                ^
NSXMLElement.m:753:6: warning: local declaration of 'node' hides instance 
variable [-Wshadow-ivar]
         || (node->type == XML_CDATA_SECTION_NODE&&  !preserve))
             ^
NSXMLElement.m:759:22: warning: local declaration of 'node' hides instance 
variable [-Wshadow-ivar]
               joinTextNodes(node, node->next, nodesToDelete);
                             ^
NSXMLElement.m:759:28: warning: local declaration of 'node' hides instance 
variable [-Wshadow-ivar]
               joinTextNodes(node, node->next, nodesToDelete);
                                   ^
NSXMLElement.m:775:22: warning: local declaration of 'node' hides instance 
variable [-Wshadow-ivar]
               joinTextNodes(node->prev, node, nodesToDelete);
                             ^
NSXMLElement.m:775:34: warning: local declaration of 'node' hides instance 
variable [-Wshadow-ivar]
               joinTextNodes(node->prev, node, nodesToDelete);
                                         ^
55 warnings generated.
  Compiling file NSXMLNode.m ...
NSXMLNode.m:478:23: warning: local declaration of 'node' hides instance 
variable [-Wshadow-ivar]
       [self _setNode: node];
                       ^
NSXMLNode.m:479:24: warning: local declaration of 'kind' hides instance 
variable [-Wshadow-ivar]
       internal->kind = kind;
                        ^
NSXMLNode.m:490:8: warning: local declaration of 'node' hides instance variable 
[-Wshadow-ivar]
   if ((node->type == XML_NAMESPACE_DECL) ||
        ^
NSXMLNode.m:491:8: warning: local declaration of 'node' hides instance variable 
[-Wshadow-ivar]
       (node->type == XML_ATTRIBUTE_NODE))
        ^
NSXMLNode.m:496:14: warning: local declaration of 'node' hides instance 
variable [-Wshadow-ivar]
   children = node->children;
              ^
NSXMLNode.m:1101:8: warning: local declaration of 'node' hides instance 
variable [-Wshadow-ivar]
   if (!node)
        ^
NSXMLNode.m:1106:8: warning: local declaration of 'node' hides instance 
variable [-Wshadow-ivar]
   if ((node->type == XML_NAMESPACE_DECL) ||
        ^
NSXMLNode.m:1107:8: warning: local declaration of 'node' hides instance 
variable [-Wshadow-ivar]
       (node->type == XML_ATTRIBUTE_NODE))
        ^
NSXMLNode.m:1112:19: warning: local declaration of 'node' hides instance 
variable [-Wshadow-ivar]
   for (children = node->children; children; children = children->next)
                   ^
NSXMLNode.m:1133:12: warning: local declaration of 'node' hides instance 
variable [-Wshadow-ivar]
       if ((node == NULL) ||
            ^
NSXMLNode.m:1134:12: warning: local declaration of 'node' hides instance 
variable [-Wshadow-ivar]
           (node->type == XML_NAMESPACE_DECL) ||
            ^
NSXMLNode.m:1135:12: warning: local declaration of 'node' hides instance 
variable [-Wshadow-ivar]
           (node->type == XML_ATTRIBUTE_NODE) ||
            ^
NSXMLNode.m:1136:12: warning: local declaration of 'node' hides instance 
variable [-Wshadow-ivar]
           (node->children == NULL))
            ^
NSXMLNode.m:1142:23: warning: local declaration of 'node' hides instance 
variable [-Wshadow-ivar]
       for (children = node->children; children; children = children->next)
                       ^
NSXMLNode.m:1191:35: warning: local declaration of 'subNodes' hides instance 
variable [-Wshadow-ivar]
       NSEnumerator *enumerator = [subNodes objectEnumerator];
                                   ^
NSXMLNode.m:1198:8: warning: local declaration of 'subNodes' hides instance 
variable [-Wshadow-ivar]
       [subNodes release];
        ^
NSXMLNode.m:1202:11: warning: local declaration of 'node' hides instance 
variable [-Wshadow-ivar]
       if (node)
           ^
NSXMLNode.m:1204:15: warning: local declaration of 'node' hides instance 
variable [-Wshadow-ivar]
           if (node->type == XML_NAMESPACE_DECL)
               ^
NSXMLNode.m:1206:26: warning: local declaration of 'node' hides instance 
variable [-Wshadow-ivar]
               ((xmlNsPtr)node)->_private = NULL;
                          ^
NSXMLNode.m:1210:27: warning: local declaration of 'node' hides instance 
variable [-Wshadow-ivar]
               xmlFreeNode(node);
                           ^
NSXMLNode.m:1214:15: warning: local declaration of 'node' hides instance 
variable [-Wshadow-ivar]
               node->_private = NULL;
               ^
NSXMLNode.m:1215:19: warning: local declaration of 'node' hides instance 
variable [-Wshadow-ivar]
               if (node->parent == NULL)
                   ^
NSXMLNode.m:1218:23: warning: local declaration of 'node' hides instance 
variable [-Wshadow-ivar]
                   if (node->type == XML_DOCUMENT_NODE)
                       ^
NSXMLNode.m:1220:45: warning: local declaration of 'node' hides instance 
variable [-Wshadow-ivar]
                       xmlFreeDoc((xmlDocPtr)node);
                                             ^
NSXMLNode.m:1222:28: warning: local declaration of 'node' hides instance 
variable [-Wshadow-ivar]
                   else if (node->type == XML_ENTITY_DECL&&
                            ^
NSXMLNode.m:1223:43: warning: local declaration of 'node' hides instance 
variable [-Wshadow-ivar]
                            ((xmlEntityPtr)node)->etype == 
XML_INTERNAL_PREDEFINED_ENTITY)
                                           ^
NSXMLNode.m:1229:39: warning: local declaration of 'node' hides instance 
variable [-Wshadow-ivar]
                       xmlDocPtr tmp = node->doc;
                                       ^
NSXMLNode.m:1231:35: warning: local declaration of 'node' hides instance 
variable [-Wshadow-ivar]
                       xmlFreeNode(node);
                                   ^
NSXMLNode.m:1250:7: warning: local declaration of 'node' hides instance 
variable [-Wshadow-ivar]
   if (node)
       ^
NSXMLNode.m:1254:11: warning: local declaration of 'node' hides instance 
variable [-Wshadow-ivar]
       if (node->type == XML_NAMESPACE_DECL)
           ^
NSXMLNode.m:1260:15: warning: local declaration of 'node' hides instance 
variable [-Wshadow-ivar]
           if (node->doc)
               ^
NSXMLNode.m:1271:41: warning: local declaration of 'node' hides instance 
variable [-Wshadow-ivar]
               xmlDOMWrapAdoptNode(NULL, node->doc, node, tmp, NULL, 0);
                                         ^
NSXMLNode.m:1271:52: warning: local declaration of 'node' hides instance 
variable [-Wshadow-ivar]
               xmlDOMWrapAdoptNode(NULL, node->doc, node, tmp, NULL, 0);
                                                    ^
NSXMLNode.m:1279:29: warning: local declaration of 'node' hides instance 
variable [-Wshadow-ivar]
               xmlUnlinkNode(node);
                             ^
NSXMLNode.m:1300:7: warning: local declaration of 'node' hides instance 
variable [-Wshadow-ivar]
   if (node->type == XML_NAMESPACE_DECL)
       ^
NSXMLNode.m:1305:11: warning: local declaration of 'node' hides instance 
variable [-Wshadow-ivar]
   while ((node = node->prev))
           ^
NSXMLNode.m:1305:18: warning: local declaration of 'node' hides instance 
variable [-Wshadow-ivar]
   while ((node = node->prev))
                  ^
NSXMLNode.m:1320:30: warning: local declaration of 'kind' hides instance 
variable [-Wshadow-ivar]
   return [self initWithKind: kind options: 0];
                              ^
NSXMLNode.m:1331:11: warning: local declaration of 'kind' hides instance 
variable [-Wshadow-ivar]
   switch (kind)
           ^
NSXMLNode.m:1370:2: warning: local declaration of 'kind' hides instance 
variable [-Wshadow-ivar]
         kind = NSXMLInvalidKind;
         ^
NSXMLNode.m:1383:49: warning: local declaration of 'kind' hides instance 
variable [-Wshadow-ivar]
       return [[theSubclass alloc] initWithKind: kind
                                                 ^
NSXMLNode.m:1390:11: warning: local declaration of 'kind' hides instance 
variable [-Wshadow-ivar]
   switch (kind)
           ^
NSXMLNode.m:1393:2: warning: local declaration of 'node' hides instance 
variable [-Wshadow-ivar]
         node = xmlNewDoc((xmlChar *)"1.0");
         ^
NSXMLNode.m:1398:2: warning: local declaration of 'node' hides instance 
variable [-Wshadow-ivar]
         node = xmlNewNode(NULL,(xmlChar *)"");
         ^
NSXMLNode.m:1402:2: warning: local declaration of 'node' hides instance 
variable [-Wshadow-ivar]
         node = xmlNewDtd(NULL, (xmlChar *)"", (xmlChar *)"",(xmlChar *)"");
         ^
NSXMLNode.m:1412:11: warning: local declaration of 'node' hides instance 
variable [-Wshadow-ivar]
           node = ret;
           ^
NSXMLNode.m:1418:9: warning: local declaration of 'node' hides instance 
variable [-Wshadow-ivar]
         node = xmlNewEntity(NULL, (xmlChar *)"", 0, (xmlChar *)"",
         ^
NSXMLNode.m:1437:2: warning: local declaration of 'node' hides instance 
variable [-Wshadow-ivar]
         node = xmlNewNode(NULL, (xmlChar *)"");
         ^
NSXMLNode.m:1441:2: warning: local declaration of 'node' hides instance 
variable [-Wshadow-ivar]
         node = xmlNewPI((xmlChar *)"", (xmlChar *)"");
         ^
NSXMLNode.m:1445:2: warning: local declaration of 'node' hides instance 
variable [-Wshadow-ivar]
         node = xmlNewComment((xmlChar *)"");
         ^
NSXMLNode.m:1449:2: warning: local declaration of 'node' hides instance 
variable [-Wshadow-ivar]
         node = xmlNewText((xmlChar *)"");
         ^
NSXMLNode.m:1453:2: warning: local declaration of 'node' hides instance 
variable [-Wshadow-ivar]
         node = xmlNewNs(NULL,(xmlChar *)"",(xmlChar *)"");
         ^
NSXMLNode.m:1457:2: warning: local declaration of 'node' hides instance 
variable [-Wshadow-ivar]
         node = xmlNewProp(NULL,(xmlChar *)"",(xmlChar *)"");
         ^
NSXMLNode.m:1464:43: warning: local declaration of 'node' hides instance 
variable [-Wshadow-ivar]
   if (nil == (self = [self _initWithNode: node kind: kind]))
                                           ^
NSXMLNode.m:1464:54: warning: local declaration of 'kind' hides instance 
variable [-Wshadow-ivar]
   if (nil == (self = [self _initWithNode: node kind: kind]))
                                                      ^
NSXMLNode.m:1515:7: warning: local declaration of 'node' hides instance 
variable [-Wshadow-ivar]
   if (node->type == XML_NAMESPACE_DECL)
       ^
NSXMLNode.m:1517:47: warning: local declaration of 'node' hides instance 
variable [-Wshadow-ivar]
       return StringFromXMLStringPtr(((xmlNs *)node)->prefix);
                                               ^
NSXMLNode.m:1521:37: warning: local declaration of 'node' hides instance 
variable [-Wshadow-ivar]
       return StringFromXMLStringPtr(node->name);
                                     ^
NSXMLNode.m:1591:3: warning: local declaration of 'kind' hides instance 
variable [-Wshadow-ivar]
   kind = [candidate kind];
   ^
NSXMLNode.m:1592:30: warning: local declaration of 'kind' hides instance 
variable [-Wshadow-ivar]
   if ((NSXMLAttributeKind == kind) || (NSXMLNamespaceKind == kind))
                              ^
NSXMLNode.m:1592:62: warning: local declaration of 'kind' hides instance 
variable [-Wshadow-ivar]
   if ((NSXMLAttributeKind == kind) || (NSXMLNamespaceKind == kind))
                                                              ^
NSXMLNode.m:1608:15: warning: local declaration of 'node' hides instance 
variable [-Wshadow-ivar]
   if (NULL == node)
               ^
NSXMLNode.m:1612:29: warning: local declaration of 'node' hides instance 
variable [-Wshadow-ivar]
   if (XML_NAMESPACE_DECL == node->type)
                             ^
NSXMLNode.m:1616:37: warning: local declaration of 'node' hides instance 
variable [-Wshadow-ivar]
   return [NSXMLNode _objectForNode: node->next];
                                     ^
NSXMLNode.m:1629:15: warning: local declaration of 'node' hides instance 
variable [-Wshadow-ivar]
   if (NULL == node)
               ^
NSXMLNode.m:1633:29: warning: local declaration of 'node' hides instance 
variable [-Wshadow-ivar]
   if (XML_NAMESPACE_DECL == node->type)
                             ^
NSXMLNode.m:1638:12: warning: local declaration of 'node' hides instance 
variable [-Wshadow-ivar]
   parent = node->parent;
            ^
NSXMLNode.m:1646:15: warning: local declaration of 'node' hides instance 
variable [-Wshadow-ivar]
   if (NULL == node)
               ^
NSXMLNode.m:1650:29: warning: local declaration of 'node' hides instance 
variable [-Wshadow-ivar]
   if (XML_NAMESPACE_DECL == node->type)
                             ^
NSXMLNode.m:1654:27: warning: local declaration of 'node' hides instance 
variable [-Wshadow-ivar]
   if (XML_ELEMENT_NODE != node->type)
                           ^
NSXMLNode.m:1658:7: warning: local declaration of 'node' hides instance 
variable [-Wshadow-ivar]
   if (node->ns == NULL)
       ^
NSXMLNode.m:1663:33: warning: local declaration of 'node' hides instance 
variable [-Wshadow-ivar]
   return StringFromXMLStringPtr(node->ns->prefix);
                                 ^
NSXMLNode.m:1675:15: warning: local declaration of 'node' hides instance 
variable [-Wshadow-ivar]
   if (NULL == node)
               ^
NSXMLNode.m:1679:29: warning: local declaration of 'node' hides instance 
variable [-Wshadow-ivar]
   if (XML_NAMESPACE_DECL == node->type)
                             ^
NSXMLNode.m:1683:37: warning: local declaration of 'node' hides instance 
variable [-Wshadow-ivar]
   return [NSXMLNode _objectForNode: node->prev];
                                     ^
NSXMLNode.m:1690:15: warning: local declaration of 'node' hides instance 
variable [-Wshadow-ivar]
   if (NULL == node)
               ^
NSXMLNode.m:1694:29: warning: local declaration of 'node' hides instance 
variable [-Wshadow-ivar]
   if (XML_NAMESPACE_DECL == node->type)
                             ^
NSXMLNode.m:1698:16: warning: local declaration of 'node' hides instance 
variable [-Wshadow-ivar]
   if ((NULL == node->doc) || (NULL == node->doc->children))
                ^
NSXMLNode.m:1698:39: warning: local declaration of 'node' hides instance 
variable [-Wshadow-ivar]
   if ((NULL == node->doc) || (NULL == node->doc->children))
                                       ^
NSXMLNode.m:1706:62: warning: local declaration of 'node' hides instance 
variable [-Wshadow-ivar]
     (NSXMLDocument *)[NSXMLNode _objectForNode: (xmlNodePtr)(node->doc)];
                                                              ^
NSXMLNode.m:1712:40: warning: local declaration of 'node' hides instance 
variable [-Wshadow-ivar]
   xmlChar *content = xmlNodeGetContent(node);
                                        ^
NSXMLNode.m:1748:7: warning: local declaration of 'node' hides instance 
variable [-Wshadow-ivar]
   if (node->type == XML_NAMESPACE_DECL)
       ^
NSXMLNode.m:1750:31: warning: local declaration of 'node' hides instance 
variable [-Wshadow-ivar]
       xmlNsPtr ns = (xmlNsPtr)node;
                               ^
NSXMLNode.m:1766:26: warning: local declaration of 'node' hides instance 
variable [-Wshadow-ivar]
           xmlNodeSetName(node, (const xmlChar *)"");
                          ^
NSXMLNode.m:1773:16: warning: local declaration of 'node' hides instance 
variable [-Wshadow-ivar]
           if ((node->type == XML_ATTRIBUTE_NODE) ||
                ^
NSXMLNode.m:1774:16: warning: local declaration of 'node' hides instance 
variable [-Wshadow-ivar]
               (node->type == XML_ELEMENT_NODE))
                ^
NSXMLNode.m:1776:20: warning: local declaration of 'node' hides instance 
variable [-Wshadow-ivar]
               if ((node->ns != NULL&&  node->ns->prefix == NULL))
                    ^
NSXMLNode.m:1776:40: warning: local declaration of 'node' hides instance 
variable [-Wshadow-ivar]
               if ((node->ns != NULL&&  node->ns->prefix == NULL))
                                        ^
NSXMLNode.m:1778:19: warning: local declaration of 'node' hides instance 
variable [-Wshadow-ivar]
                   node->ns->prefix = xmlStrdup(prefix);
                   ^
NSXMLNode.m:1785:36: warning: local declaration of 'node' hides instance 
variable [-Wshadow-ivar]
                   ns = xmlSearchNs(node->doc, node, prefix);
                                    ^
NSXMLNode.m:1785:47: warning: local declaration of 'node' hides instance 
variable [-Wshadow-ivar]
                   ns = xmlSearchNs(node->doc, node, prefix);
                                               ^
NSXMLNode.m:1788:32: warning: local declaration of 'node' hides instance 
variable [-Wshadow-ivar]
                       xmlSetNs(node, ns);
                                ^
NSXMLNode.m:1794:36: warning: local declaration of 'node' hides instance 
variable [-Wshadow-ivar]
                       ensure_oldNs(node);
                                    ^
NSXMLNode.m:1799:31: warning: local declaration of 'node' hides instance 
variable [-Wshadow-ivar]
                       oldNs = node->doc->oldNs;
                               ^
NSXMLNode.m:1815:32: warning: local declaration of 'node' hides instance 
variable [-Wshadow-ivar]
                       xmlSetNs(node, ns);
                                ^
NSXMLNode.m:1820:26: warning: local declaration of 'node' hides instance 
variable [-Wshadow-ivar]
           xmlNodeSetName(node, localName);
                          ^
NSXMLNode.m:1826:26: warning: local declaration of 'node' hides instance 
variable [-Wshadow-ivar]
           xmlNodeSetName(node, xmlName);
                          ^
NSXMLNode.m:1840:7: warning: local declaration of 'node' hides instance 
variable [-Wshadow-ivar]
   if (node->type == XML_NAMESPACE_DECL)
       ^
NSXMLNode.m:1842:31: warning: local declaration of 'node' hides instance 
variable [-Wshadow-ivar]
       xmlNsPtr ns = (xmlNsPtr)node;
                               ^
NSXMLNode.m:1855:39: warning: local declaration of 'subNodes' hides instance 
variable [-Wshadow-ivar]
           NSEnumerator *enumerator = [subNodes objectEnumerator];
                                       ^
NSXMLNode.m:1869:29: warning: local declaration of 'node' hides instance 
variable [-Wshadow-ivar]
           xmlNodeSetContent(node, XMLSTRING(string));
                             ^
NSXMLNode.m:1875:56: warning: local declaration of 'node' hides instance 
variable [-Wshadow-ivar]
           xmlChar *newstr = xmlEncodeEntitiesReentrant(node->doc, 
XMLSTRING(string));
                                                        ^
NSXMLNode.m:1876:29: warning: local declaration of 'node' hides instance 
variable [-Wshadow-ivar]
           xmlNodeSetContent(node, newstr);
                             ^
NSXMLNode.m:1891:8: warning: local declaration of 'node' hides instance 
variable [-Wshadow-ivar]
   if ((node->type == XML_ATTRIBUTE_NODE) ||
        ^
NSXMLNode.m:1892:8: warning: local declaration of 'node' hides instance 
variable [-Wshadow-ivar]
       (node->type == XML_ELEMENT_NODE))
        ^
NSXMLNode.m:1899:11: warning: local declaration of 'node' hides instance 
variable [-Wshadow-ivar]
           node->ns = NULL;
           ^
NSXMLNode.m:1903:30: warning: local declaration of 'node' hides instance 
variable [-Wshadow-ivar]
       ns = xmlSearchNsByHref(node->doc, node, uri);
                              ^
NSXMLNode.m:1903:41: warning: local declaration of 'node' hides instance 
variable [-Wshadow-ivar]
       ns = xmlSearchNsByHref(node->doc, node, uri);
                                         ^
NSXMLNode.m:1906:16: warning: local declaration of 'node' hides instance 
variable [-Wshadow-ivar]
           if ((node->ns != NULL&&  node->ns->href == NULL))
                ^
NSXMLNode.m:1906:36: warning: local declaration of 'node' hides instance 
variable [-Wshadow-ivar]
           if ((node->ns != NULL&&  node->ns->href == NULL))
                                    ^
NSXMLNode.m:1908:15: warning: local declaration of 'node' hides instance 
variable [-Wshadow-ivar]
               node->ns->href = xmlStrdup(uri);
               ^
NSXMLNode.m:1922:28: warning: local declaration of 'node' hides instance 
variable [-Wshadow-ivar]
               ensure_oldNs(node);
                            ^
NSXMLNode.m:1927:23: warning: local declaration of 'node' hides instance 
variable [-Wshadow-ivar]
               oldNs = node->doc->oldNs;
                       ^
NSXMLNode.m:1946:16: warning: local declaration of 'node' hides instance 
variable [-Wshadow-ivar]
       xmlSetNs(node, ns);
                ^
NSXMLNode.m:1958:8: warning: local declaration of 'node' hides instance 
variable [-Wshadow-ivar]
   if ((node->type == XML_ATTRIBUTE_NODE) ||
        ^
NSXMLNode.m:1959:8: warning: local declaration of 'node' hides instance 
variable [-Wshadow-ivar]
       (node->type == XML_ELEMENT_NODE))
        ^
NSXMLNode.m:1993:7: warning: local declaration of 'options' hides instance 
variable [-Wshadow-ivar]
   if (options&  NSXMLNodePreserveWhitespace)
       ^
NSXMLNode.m:2000:8: warning: local declaration of 'options' hides instance 
variable [-Wshadow-ivar]
   if ((options&  NSXMLNodeCompactEmptyElement) == 0)
        ^
NSXMLNode.m:2006:7: warning: local declaration of 'options' hides instance 
variable [-Wshadow-ivar]
   if (options&  NSXMLNodePrettyPrint)
       ^
NSXMLNode.m:2055:48: warning: local declaration of 'node' hides instance 
variable [-Wshadow-ivar]
   return StringFromXMLStringPtr(xmlGetNodePath(node));
                                                ^
NSXMLNode.m:2066:7: warning: local declaration of 'node' hides instance 
variable [-Wshadow-ivar]
   if (node->type == XML_NAMESPACE_DECL)
       ^
NSXMLNode.m:2071:24: warning: local declaration of 'node' hides instance 
variable [-Wshadow-ivar]
   return execute_xpath(node, anxpath, nil, YES, error);
                        ^
122 warnings generated.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]