From 2ac1c455851ca1305f7bbf47a84796ca5af36612 Mon Sep 17 00:00:00 2001 From: Joe Eykholt Date: Mon, 27 Sep 2010 17:18:50 +0000 Subject: [PATCH] Fix warning of uninitialized variable on some compilers due to no default case in switch statement. git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2290 d57e44dd-8a1f-0410-8b47-8ef2f437770f --- fcst/ft_cmd.c | 1 + 1 file changed, 1 insertion(+) diff --git a/fcst/ft_cmd.c b/fcst/ft_cmd.c index 8274c60b2..453410e44 100644 --- a/fcst/ft_cmd.c +++ b/fcst/ft_cmd.c @@ -569,6 +569,7 @@ static void ft_recv_cmd(struct ft_sess *sess, struct fc_seq *sp, switch (fcp->fc_flags & (FCP_CFL_RDDATA | FCP_CFL_WRDATA)) { case 0: + default: data_dir = SCST_DATA_NONE; break; case FCP_CFL_RDDATA: