[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 1333046917 -7200 # Node ID 9dbadf67b1b76d5864d1db715c1cda72cff53d16 # Parent af687dd9e9e0ebf3e68fd9413c027d0d0e8b7a33 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> diff -r af687dd9e9e0 -r 9dbadf67b1b7 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 |