On Wed, Aug 24, 2011 at 4:39 AM, Jan Safranek <jsafr...@redhat.com> wrote:
> Discovered by gcc 4.6 as "warning: variable ‘controller’ set but not used"
>
> Signed-off-by: Jan Safranek <jsafr...@redhat.com>

Acked-by: Dhaval Giani <dhaval.gi...@gmail.com>

> ---
>
>  tests/test_functions.c |    6 ++++++
>  1 files changed, 6 insertions(+), 0 deletions(-)
>
> diff --git a/tests/test_functions.c b/tests/test_functions.c
> index d9ca88e..796a2af 100644
> --- a/tests/test_functions.c
> +++ b/tests/test_functions.c
> @@ -845,6 +845,12 @@ void test_cgroup_get_cgroup(int ctl1, int ctl2, struct 
> uid_gid_t ids, int i)
>                /* Create under another controller also */
>                ret = set_controller(ctl2, controller_name, control_file);
>                controller = cgroup_add_controller(cgroup_a, controller_name);
> +               if (controller)
> +                       message(i++, PASS, "cgroup_add_controller()",
> +                                       0, info[NOMESSAGE]);
> +               else
> +                       message(i++, FAIL, "cgroup_add_controller()",
> +                                       -1, info[NOMESSAGE]);
>        }
>        test_cgroup_create_cgroup(0, cgroup_a, "group_a", 0, 1, 1, 00);
>
>
>
> ------------------------------------------------------------------------------
> EMC VNX: the world's simplest storage, starting under $10K
> The only unified storage solution that offers unified management
> Up to 160% more powerful than alternatives and 25% more efficient.
> Guaranteed. http://p.sf.net/sfu/emc-vnx-dev2dev
> _______________________________________________
> Libcg-devel mailing list
> Libcg-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/libcg-devel
>

------------------------------------------------------------------------------
EMC VNX: the world's simplest storage, starting under $10K
The only unified storage solution that offers unified management 
Up to 160% more powerful than alternatives and 25% more efficient. 
Guaranteed. http://p.sf.net/sfu/emc-vnx-dev2dev
_______________________________________________
Libcg-devel mailing list
Libcg-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libcg-devel

Reply via email to