summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorDavid Lamparter <equinox@opensourcerouting.org>2016-09-21 12:49:30 +0200
committerDonald Sharp <sharpd@cumulusnetworks.com>2016-09-23 18:12:16 +0200
commit01673c6817bcd443118dd1d35aaf7071001aaf3f (patch)
tree1233aedca3ee05b58e12efd794c0a544d420eb92 /lib
parentospf6d: fix fallout from ifindex_t change (diff)
downloadfrr-01673c6817bcd443118dd1d35aaf7071001aaf3f.tar.xz
frr-01673c6817bcd443118dd1d35aaf7071001aaf3f.zip
lib: fix ICC warning in route-map code
ICC thinks we're storing a pointer and might be losing bits at the top: error #810: conversion from "void *" to "route_map_event_t={enum <unnamed>}" may lose significant bits Build is warning-free on ICC 14.0.3 (for Linux x86_64) with this. Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
Diffstat (limited to 'lib')
-rw-r--r--lib/routemap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/routemap.c b/lib/routemap.c
index 10e5ed304..09afc31bc 100644
--- a/lib/routemap.c
+++ b/lib/routemap.c
@@ -1341,7 +1341,7 @@ static void
route_map_process_dependency (struct hash_backet *backet, void *data)
{
char *rmap_name;
- route_map_event_t type = (route_map_event_t )data;
+ route_map_event_t type = (route_map_event_t)(ptrdiff_t)data;
rmap_name = (char *)backet->data;