bug-gnustep
[Top][All Lists]
Advanced

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

[bug #37575] Incorrect return type for NSCharacterSet methods


From: Thomas Davie
Subject: [bug #37575] Incorrect return type for NSCharacterSet methods
Date: Mon, 15 Oct 2012 10:04:16 +0000
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_8_2) AppleWebKit/536.26.14 (KHTML, like Gecko) Version/6.0.1 Safari/536.26.14

URL:
  <http://savannah.gnu.org/bugs/?37575>

                 Summary: Incorrect return type for NSCharacterSet methods
                 Project: GNUstep
            Submitted by: beelsebob
            Submitted on: Mon 15 Oct 2012 10:04:15 AM GMT
                Category: Base/Foundation
                Severity: 3 - Normal
              Item Group: Bug
                  Status: None
                 Privacy: Public
             Assigned to: None
             Open/Closed: Open
         Discussion Lock: Any

    _______________________________________________________

Details:

NSCharacterSet's various convenience constructor methods are declared in
GNUstep to return NSCharacterSet *, rather than id.  This causes the warning
"warning: incompatible pointer types initializing 'NSMutableCharacterSet *'
with an expression of type 'NSCharacterSet *' [-Wincompatible-pointer-types]"
when declaring an NSMutableCharacterSet as so:

NSMutableCharacterSet *mcs = [NSMutableCharacterSet whitespaceCharacterSet];




    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?37575>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

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