[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-devel] [PATCH 16 of 18] tools/blktap2: fix build errors caused by Werror, remove blkif_op_name
# HG changeset patch # User Olaf Hering <olaf@xxxxxxxxx> # Date 1333397580 -7200 # Node ID 71055bfdb14c72072d9b3fdf6b3c4973ae5b8a20 # Parent 55f205a0d2d6831f0e0280bd19d0ade22ebd9fe3 tools/blktap2: fix build errors caused by Werror, remove blkif_op_name -O2 -Wall -Werror triggers these warnings: ../include/blktaplib.h:235: warning: 'blkif_op_name' defined but not used blkif_op_name[] is odd and appearently not used according to google, except in an 7 years old blkdump.c which would not compile anyway with current blktap. Signed-off-by: Olaf Hering <olaf@xxxxxxxxx> Acked-by: Ian Jackson <ian.jackson@xxxxxxxxxxxxx> diff -r 55f205a0d2d6 -r 71055bfdb14c tools/blktap2/include/blktaplib.h --- a/tools/blktap2/include/blktaplib.h +++ b/tools/blktap2/include/blktaplib.h @@ -228,15 +228,4 @@ typedef struct msg_lock { ((_req) * BLKIF_MAX_SEGMENTS_PER_REQUEST * getpagesize()) + \ ((_seg) * getpagesize())) -/* Defines that are only used by library clients */ - -#ifndef __COMPILING_BLKTAP_LIB - -static char *blkif_op_name[] = { - [BLKIF_OP_READ] = "READ", - [BLKIF_OP_WRITE] = "WRITE", -}; - -#endif /* __COMPILING_BLKTAP_LIB */ - #endif /* __BLKTAPLIB_H__ */ _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx http://lists.xen.org/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |