Bug 762836 (GLUSTER-1104)

Summary: clang errors in the file client-handshake.c from new protocol
Product: [Community] GlusterFS Reporter: Raghavendra Bhat <rabhat>
Component: protocolAssignee: Amar Tumballi <amarts>
Status: CLOSED CURRENTRELEASE QA Contact:
Severity: medium Docs Contact:
Priority: low    
Version: 3.1-alphaCC: gluster-bugs, vraman
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Raghavendra Bhat 2010-07-15 11:08:29 UTC
clang has reported the following errors to be present in the file 
client-handshake.c from the new protocol:


Logic error  Result of operation is garbage or undefined  xlators/protocol/client/src/client-handshake.c  341  2	 
Dead store  Dead assignment  xlators/protocol/client/src/client-handshake.c  456  1	 
Dead store  Dead assignment  xlators/protocol/client/src/client-handshake.c  393  1	 
Dead store  Dead assignment  xlators/protocol/client/src/client-handshake.c  562  1	 
Dead store  Dead assignment  xlators/protocol/client/src/client-handshake.c  134  1	 
Dead store  Dead assignment  xlators/protocol/client/src/client-handshake.c  256  1	 
Dead store  Dead assignment  xlators/protocol/client/src/client-handshake.c  188  1	 
Dead store  Dead assignment  xlators/protocol/client/src/client-handshake.c  560  1	 
Dead store  Dead assignment  xlators/protocol/client/src/client-handshake.c  453  1	 
Dead store  Dead assignment  xlators/protocol/client/src/client-handshake.c  386  1	 
Dead store  Dead assignment  xlators/protocol/client/src/client-handshake.c  446  1	 


the total report of all the files can be found in the url:
http://dev.gluster.com/~raghavendrabhat/2010-07-14-1/

Comment 1 Amar Tumballi 2010-07-28 07:43:23 UTC
with commit http://git.gluster.com/?p=glusterfs.git;a=commit;h=550cdfbcf2a5300c926f87403e12f19424bffeac (http://patches.gluster.com/patch/3942/) this bug is fixed. verified by running clang with/without patch.