WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-api

Re: [Xen-API] [PATCH] imported patch removing-warnings

To: Rok Strnisa <rok.strnisa@xxxxxxxxxx>
Subject: Re: [Xen-API] [PATCH] imported patch removing-warnings
From: Vincent Hanquez <vincent.hanquez@xxxxxxxxxxxxx>
Date: Tue, 9 Nov 2010 17:41:16 +0000
Cc: "xen-api@xxxxxxxxxxxxxxxxxxx" <xen-api@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Tue, 09 Nov 2010 09:41:28 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <403764544b97988f2e3d.1289323667@rok-desktop>
List-help: <mailto:xen-api-request@lists.xensource.com?subject=help>
List-id: Discussion of API issues surrounding Xen <xen-api.lists.xensource.com>
List-post: <mailto:xen-api@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-api>, <mailto:xen-api-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-api>, <mailto:xen-api-request@lists.xensource.com?subject=unsubscribe>
References: <403764544b97988f2e3d.1289323667@rok-desktop>
Sender: xen-api-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.8) Gecko/20100821 Icedove/3.1.2
On 09/11/10 17:27, Rok Strnisa wrote:
Patch subject is complete summary.


  ocaml/idl/dm_api.ml                       |   4 ++--
  ocaml/idl/ocaml_backend/event_helper.ml   |   2 +-
  ocaml/idl/ocaml_backend/gen_db_actions.ml |   8 ++++----
  ocaml/idl/ocaml_backend/gen_rbac.ml       |   4 ++--
  ocaml/idl/ocaml_backend/gen_server.ml     |   6 +++---
  ocaml/perftest/createVM.ml                |   4 ++--
  ocaml/util/stats.ml                       |   4 ++--
  ocaml/xapi/dbsync_slave.ml                |   8 ++++----
  ocaml/xapi/events.ml                      |   4 ++--
  ocaml/xapi/message_forwarding.ml          |  24 ++++++++++++------------
  ocaml/xapi/sparse_dd.ml                   |  14 +++++++-------
  ocaml/xapi/xapi.ml                        |   4 ++--
  ocaml/xapi/xapi_host.ml                   |  10 +++++-----
  ocaml/xapi/xapi_pool.ml                   |  13 ++++++-------
  ocaml/xapi/xapi_vm.ml                     |   4 +---
  ocaml/xenops/domain.ml                    |   2 +-
  ocaml/xenops/squeeze.ml                   |   4 ++--
  ocaml/xenops/squeeze_xen.ml               |   2 +-
  ocaml/xenops/watch.ml                     |   2 +-
  ocaml/xenops/xal.ml                       |   5 ++---
  20 files changed, 62 insertions(+), 66 deletions(-)

Hi Rok,

That doesn't look like the right thing to do.

if things doesn't need a name, either the right side is not necessary in the first place (beware check for side effect) eg:

-  let t = io.gettimeofday () in
+  let _ (* t *) = io.gettimeofday () in

-                       let oldstate = devstate.backstate in
+                       let _ (* oldstate *) = devstate.backstate in

or you should have a:

let (_: type expected) = ....

to avoid future partial application.

--
Vincent

_______________________________________________
xen-api mailing list
xen-api@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/mailman/listinfo/xen-api