Bug 5662 - mount.cifs: use of unused variable "rc" in a "printf"
Summary: mount.cifs: use of unused variable "rc" in a "printf"
Status: RESOLVED FIXED
Alias: None
Product: CifsVFS
Classification: Unclassified
Component: user space tools (show other bugs)
Version: 2.6
Hardware: x64 Linux
: P3 enhancement
Target Milestone: ---
Assignee: Steve French
QA Contact:
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-08-02 06:00 UTC by Christophe
Modified: 2008-08-26 12:08 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Christophe 2008-08-02 06:00:26 UTC
The compilation warning is ussued:

mount.cifs.c: In function ‘main’:
mount.cifs.c:719: warning: ‘rc’ is used uninitialized in this function
mount.cifs.c:666: note: ‘rc’ was declared here

Effectively, the variable and printf are not (no more?) usefull, and both lines can be discarded without problem.
Comment 1 Steve French 2008-08-26 12:08:17 UTC
Already fixed.  See

http://git.samba.org/?p=samba.git;a=blob;f=source/client/mount.cifs.c;h=c24c22e1c2757d660f7bc5de3cf0d95700c746d7;hb=v3-2-test

for 3.2 version and also fixed in 3.3

Let us know if you see anything similar in the future.