[stgt] [PATCH] bs_sheepdog.c: fix gcc warning at sd_open()

FUJITA Tomonori fujita.tomonori at lab.ntt.co.jp
Thu Nov 28 18:02:32 CET 2013


On Fri, 29 Nov 2013 00:28:06 +0900
Ryusuke Konishi <konishi.ryusuke at lab.ntt.co.jp> wrote:

> This fixes the following warning at sd_open function, which happens
> because gcc isn't always perfect with determining whether a variable
> is used uninitialized:
> 
> cc -c -DUSE_SIGNALFD -DUSE_TIMERFD -D_GNU_SOURCE -I. -g -O2
> -fno-strict-aliasing -Wall -Wstrict-prototypes -fPIC DTGT_VERSION=\"\"
> --DBSDIR=\"/lib/tgt/backing-store\" bs_sheepdog.c o bs_sheepdog.o
> bs_sheepdog.c: In function 'sd_open':
> bs_sheepdog.c:920: warning: 'saveptr' may be used uninitialized in
> this function
> 
> Signed-off-by: Ryusuke Konishi <konishi.ryusuke at lab.ntt.co.jp>
> ---
>  usr/bs_sheepdog.c |    2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)

Applied, thanks.
--
To unsubscribe from this list: send the line "unsubscribe stgt" in
the body of a message to majordomo at vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html



More information about the stgt mailing list