[libvirt] [PATCH] Fix compiler warnings in test code

Jim Meyering jim at meyering.net
Wed Dec 17 13:36:44 UTC 2008


john.levon at sun.com wrote:
> # HG changeset patch
> # User john.levon at sun.com
> # Date 1229399267 28800
> # Node ID 1b81ac255ad765ab782829e7fe0a55dc7bab72ab
> # Parent  ee6ccfc062f49f514d7ae8924d5a596b18441fee
> Fix compiler warnings in test code

I suppose the latter was a warning from Sun's cc about
code after the "exit(77)" being unreachable.

ACK.

> diff --git a/tests/nodeinfotest.c b/tests/nodeinfotest.c
...
> -#ifndef __linux__
> -    exit (77); /* means 'test skipped' for automake */
> -#endif
>
>      abs_srcdir = getenv("abs_srcdir");
>      if (!abs_srcdir)
> @@ -102,4 +109,7 @@ mymain(int argc, char **argv)
>      return(ret==0 ? EXIT_SUCCESS : EXIT_FAILURE);
>  }
...




More information about the libvir-list mailing list