On Jul 14, "Andrew Vylegjanin" wrote:
>
> Hi!
>
> I've see similar problem in this list archive, but did't found any answers.
>
> I have SPARC Solaris 9 and gcc -v:
>
> Reading specs from /usr/local/lib/gcc/sparc-sun-solaris2.9/3.4.0/specs
> Configured with: ../configure --with-as=/usr/ccs/bin/as
> --with-ld=/usr/ccs/bin/ld --disable-nls
> Thread model: posix
> gcc version 3.4.0
>
> I've tried to complie flow-tools-0.67 without success:
>
> <--
> flow-cat.o -MD -MP -MF ".deps/flow-cat.Tpo" \
> -c -o flow-cat.o `test -f 'flow-cat.c' || echo './'`flow-cat.c; \
> then mv ".deps/flow-cat.Tpo" ".deps/flow-cat.Po"; \
> else rm -f ".deps/flow-cat.Tpo"; exit 1; \
> fi
> flow-cat.c: In function `main':
> flow-cat.c:555: error: label at end of compound statement
> make[1]: *** [flow-cat.o] Error 1
> <--
>
> Is there any workaround?
GCC 3.4 now treats this as an error, it used to be a warning.
I haven't tested this, but this makes the warning go away against version
.67 compiled with gcc 3.3 for flow-receive:
--- src/flow-receive.c Mon Nov 24 21:37:04 2003
+++ src/flow-receive.c Wed Jul 14 12:14:59 2004
@@ -733,6 +733,7 @@
} /* for */
skip1:
+ do {} while (0);
} /* if FD_ISSET */
If you go adding little "do {} while (0);"'s after the labels at the end of the
compound statements, it should fix it. But I haven't tested this, so if
you're not a C programmer, wait for Mark to update the sources with a real
fix :)
Mike
_______________________________________________
Flow-tools mailing list
[EMAIL PROTECTED]
http://mailman.splintered.net/mailman/listinfo/flow-tools