swarm-support
[Top][All Lists]
Advanced

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

multiple declarations for `setObjectCollection;'


From: J.J. Merelo Guervos
Subject: multiple declarations for `setObjectCollection;'
Date: Tue, 5 Nov 96 10:12:58 +0100

>>>>> "Rene" == Rene Kongsgaard Jacobsen <address@hidden> writes:

Hi,

    Rene> ColonyObserverSwarm.m:135: warning: multiple declarations
    Rene> for method `setObjectCollection:'
    Rene> /pack/swarm-961002/include/defobj.h:96: warning: using
    Rene> `-(void)setObjectCollection:(BOOL)objectCollection'
    Rene> /pack/swarm-961002/include/space/Object2dDisplay.h:24:
    Rene> warning: also found `-setObjectCollection:objects'
    Rene> ColonyObserverSwarm.m:135: warning: passing arg 1 of
    Rene> `setObjectCollection:' makes integer from pointer without a
    Rene> cast

The problem is that you can't overload by return type;
setObjectCollection returns (id) by default, not (void). Change the
return type of both to (void) or delet (void) in the first.

                                JJ

-- 
JJ Merelo                         | http://kal-el.ugr.es/htbin/jj-plex
Grupo Geneura ---- Univ. Granada  | http://kal-el.ugr.es/



reply via email to

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