swarm-support
[Top][All Lists]
Advanced

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

Re-compiling app with 2.0.1: warnings


From: Fabio Mascelloni
Subject: Re-compiling app with 2.0.1: warnings
Date: Fri, 24 Sep 1999 10:50:30 +0200

Re-compiling my old Swarm1.4.1 app with Swarm2.0.1 I get a lot of warnings such as :
 
1) '' unused variable '<var-name>' ''                                              (harmless warning,I suppose)
2) '' '<var-name>' might be used uninitialized in this function ''        ( harmless warning too)
 
3) " implicit declaration of function '<function-name>'
      All the 'implicitly declarated' functions are defined in a header "Common.h" that is used by two
      classes, BlackBoard and Agent that reference one another ( BlackB.m imports Agent.h and Agent.m 
      imports BlackB.h).I've tried to solve this in these ways:
  
      a) importing "Common.h" only in BlackBoard's header ; resulting warning :
         .........
         Common.h : <line-number> : multiple definition of function '<function-name>'
         BlackBoard.o : Common.h : <line-number> : first defined here
         Agent.o : in function <function-name>
         .............
    b)  importing "Common.h" in both "Agent.m" and "BlackB.m" ; same warnings of point a)
        
  I've thrown away the first three kinds of warning removing -Wall from OBJCFLAGS in Makefile.common ,but I wonder if this is a good practice  
 
  4)   " libtool-swarm :link:warning: library '/Swarm-2.0.1/lib/libspace.la' was moved"
 
   How can I solve 3) and 4) ?
 
   Thanks ,Fabio.
    
                          

reply via email to

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