From: Spencer Oliver Date: Wed, 22 Aug 2012 21:16:35 +0000 (+0100) Subject: jtag: remove libftdi enum-compare warning X-Git-Tag: v0.7.0-rc1~235 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=0b118583f70c0169d4aa3b3fc83393cb007c60cd;p=openocd jtag: remove libftdi enum-compare warning See Trac #52 for details. Change-Id: Idb509ead2b51bfcceeb00d0224a4d1c395b28a04 Signed-off-by: Spencer Oliver Reviewed-on: http://openocd.zylin.com/801 Tested-by: jenkins Reviewed-by: Olivier Schonken Reviewed-by: Freddie Chopin --- diff --git a/src/jtag/drivers/ft2232.c b/src/jtag/drivers/ft2232.c index 1997aeb6..6758dc79 100644 --- a/src/jtag/drivers/ft2232.c +++ b/src/jtag/drivers/ft2232.c @@ -135,7 +135,7 @@ enum ftdi_interface { #if BUILD_FT2232_FTD2XX == 1 enum { FT_DEVICE_2232H = 6, FT_DEVICE_4232H, FT_DEVICE_232H }; #elif BUILD_FT2232_LIBFTDI == 1 - enum { TYPE_2232H = 4, TYPE_4232H = 5, TYPE_232H = 6 }; + enum ftdi_chip_type { TYPE_2232H = 4, TYPE_4232H = 5, TYPE_232H = 6 }; #endif #endif