swarm-support
[Top][All Lists]
Advanced

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

Re: problem making swarm-1.4.1 (-O3) under rh6.0


From: Rick Riolo
Subject: Re: problem making swarm-1.4.1 (-O3) under rh6.0
Date: Thu, 3 Jun 1999 11:35:44 -0400 (EDT)

It doesn't seem to work, nor does a couple of other
variants I tried (the lines are off a bit from yours
because I left the old stuff in there in a #ifdef).
This:

const char* 
skip_typespec (const char *intype)
{
  const char *type = skip_type_qualifiers (intype);  

gives:

/usr/local/swarm/Swarm-1.4.1/swarm-1.4.1/src/objectbase/swarm_rts_routines.m:
In function `skip_typespec':
/usr/local/swarm/Swarm-1.4.1/swarm-1.4.1/src/objectbase/swarm_rts_routines.m:37:
warning: `type' might be used uninitialized in this function
/usr/local/swarm/Swarm-1.4.1/swarm-1.4.1/src/objectbase/swarm_rts_routines.m:37:
warning: `type' might be used uninitialized in this function

This gives two errors:

const char* 
skip_typespec (const char *intype)
{
  const char *type;
  type = skip_type_qualifiers (intype);  

/usr/local/swarm/Swarm-1.4.1/swarm-1.4.1/src/objectbase/swarm_rts_routines.m:
In function `skip_typespec':
/usr/local/swarm/Swarm-1.4.1/swarm-1.4.1/src/objectbase/swarm_rts_routines.m:37:
warning: `type' might be used uninitialized in this function
/usr/local/swarm/Swarm-1.4.1/swarm-1.4.1/src/objectbase/swarm_rts_routines.m:38:
warning: `type' might be used uninitialized in this function

So does the following---gives errors for both lines!!

const char* 
skip_typespec (const char *intype)
{
  const char *type = "x"; 
  type = skip_type_qualifiers (intype);  

Very strange!

- r

Rick Riolo                           address@hidden
Center for Study of Complex Systems (CSCS)
4477 Randall Lab                
University of Michigan         Ann Arbor MI 48109-1120
Phone: 734 763 3323                  Fax: 734 763 9267
http://www.pscs.umich.edu/PEOPLE/rlr-home.html

On 3 Jun 1999, Marcus G. Daniels wrote:

> Date: 03 Jun 1999 08:06:28 -0700
> From: Marcus G. Daniels <address@hidden>
> Reply-To: address@hidden
> To: address@hidden
> Subject: Re: problem making swarm-1.4.1  (-O3) under rh6.0
> 
> >>>>> "RLR" == Rick Riolo <address@hidden> writes:
> 
> RLR> warning: `type' might be used uninitialized in this function
> 
> RLR> const char*
> RLR> skip_typespec (const char *type)
> RLR> {
> RLR>  type = skip_type_qualifiers (type);  
>  
> Try changing it to:
> 
> const char*
> skip_typespec (const char *intype)
> {
>   const char *type = skip_type_qualifiers (intype);  
> 
> ..that will probably silence the error.  (On sparc-sun-solaris2.7, with the
> current snapshot of gcc, I don't get the warning with -O3.)
> 
>                   ==================================
>    Swarm-Support is for discussion of the technical details of the day
>    to day usage of Swarm.  For list administration needs (esp.
>    [un]subscribing), please send a message to <address@hidden>
>    with "help" in the body of the message.
> 
> 


                  ==================================
   Swarm-Support is for discussion of the technical details of the day
   to day usage of Swarm.  For list administration needs (esp.
   [un]subscribing), please send a message to <address@hidden>
   with "help" in the body of the message.



reply via email to

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