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

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



john levon sun com wrote:
> # HG changeset patch
> # User john levon 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);
>  }
...


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