From 6e9ca96c694dad9ca231fca5cbe44ce676e036e7 Mon Sep 17 00:00:00 2001 From: Ethan Jackson Date: Thu, 17 Nov 2011 15:26:00 -0800 Subject: [PATCH] ovs-dpctl: Suppress compiler warning on 64 bit linux. utilities/ovs-dpctl.c:851:42: error: cast to pointer from integer of different size [-Werror=int-to-pointer-cast] --- utilities/ovs-dpctl.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/utilities/ovs-dpctl.c b/utilities/ovs-dpctl.c index 5fa6fb7e..56d648c2 100644 --- a/utilities/ovs-dpctl.c +++ b/utilities/ovs-dpctl.c @@ -848,7 +848,8 @@ do_normalize_actions(int argc, char *argv[]) int n = -1; if (sscanf(argv[i], "%15[^=]=%d%n", name, &number, &n) > 0 && n > 0) { - shash_add(&port_names, name, (void *) number); + uintptr_t n = number; + shash_add(&port_names, name, (void *) n); } else { ovs_fatal(0, "%s: expected NAME=NUMBER", argv[i]); } -- 2.30.2