Bug 151541 - nfs-server-2.2beta51-216: printf problem + local variable used before set
Summary: nfs-server-2.2beta51-216: printf problem + local variable used before set
Status: RESOLVED FIXED
Alias: None
Product: SUSE LINUX 10.0
Classification: openSUSE
Component: Basesystem (show other bugs)
Version: unspecified
Hardware: All SuSE Linux 10.1
: P5 - None : Normal
Target Milestone: ---
Assignee: Petr Ostadal
QA Contact: E-mail List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-02-16 16:51 UTC by David Binderman
Modified: 2006-02-20 16:42 UTC (History)
0 users

See Also:
Found By: Other
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description David Binderman 2006-02-16 16:51:37 UTC
I just tried to compile package nfs-server-2.2beta51-216 with the Intel C 
compiler.

It said

1.

fh.c(1064): warning #267: the format string requires additional arguments

The source code is

        Dprintf(D_FHCACHE, "fh_find: psi=%lx (%u,%u) ... not found\n",
                h->ino, h->dev);

Three % specifiers, only two trailing parameters. Suggest add another parameter.

2.

mountd.c(282): warning #592: variable "addr" is used before its value is set

The source code is

                Dprintf(L_WARNING, "Blocked attempt of %s to pathconf(%s)\n",
                                     inet_ntoa(addr), dir);

Suggest initialise local variable "addr" before first use.
Comment 1 Petr Ostadal 2006-02-20 16:42:21 UTC
fixed and submited for STABLE