bug-inetutils
[Top][All Lists]
Advanced

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

Re: [bug-inetutils] Cleaning up warnings


From: Debarshi Ray
Subject: Re: [bug-inetutils] Cleaning up warnings
Date: Tue, 6 May 2008 19:46:44 +0530

>  > diff -urNp inetutils/libls/stat_flags.c inetutils-build/libls/stat_flags.c
>  > --- inetutils/libls/stat_flags.c      2007-12-10 21:17:19.000000000 +0530
>  > +++ inetutils-build/libls/stat_flags.c        2008-04-22 
> 08:46:11.000000000 +0530
>  > @@ -103,8 +103,7 @@ string_to_flags (stringp, setp, clrp)
>  >       char **stringp;
>  >       u_int *setp, *clrp;
>  >  {
>  > -  int clear;
>  > -  char *string, *p;
>  > +  char *string;
>  >
>  >    if (setp)
>  >      *setp = 0;
>  > @@ -112,6 +111,9 @@ string_to_flags (stringp, setp, clrp)
>  >      *clrp = 0;
>  >    string = *stringp;
>  >  #ifdef ORIGINAL_SOURCE
>  > +  int clear;
>  > +  char *p;
>  > +
>
>  Nope, placing declarations after statements assumes C99! Many compilers
>  (including gcc 3.x) will give error at this place.

Will correct this once we have decided what to do with the
ORIGINAL_SOURCE snippets.

Happy hacking,
Debarshi
-- 
"From what we get, we can make a living; what we give, however, makes a life."
 -- Arthur Ashe




reply via email to

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